Skip to content

Commit

Permalink
fix: [WIP] fix for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill-Hatalski committed Jul 28, 2023
1 parent bcc8e36 commit f9381c3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
class SerializableFactoryTest extends TestCase
{
private const TEST_INDEX = 'TEST_INDEX';
private array $matches = [self::TEST_INDEX];

public function testFactory(): void
{
$factory = new SerializableSecretDtoFactory();
$object = $factory->create(self::TEST_INDEX);
$object = $factory->create($this->matches);
self::assertInstanceOf(SerializableSecretDto::class, $object);
self::assertInstanceOf(PhpSerializable::class, $object);
self::assertSame(self::TEST_INDEX, $object->getEnvIndex());
Expand Down

0 comments on commit f9381c3

Please sign in to comment.