diff --git a/composer.json b/composer.json index b10efcb..a37edcd 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "require": { "php": "^7.2", "symfony/framework-bundle": "^4.3", - "kununu/data-fixtures": "^1.0.1", + "kununu/data-fixtures": "^2.0.0", "symfony/config": "^4.3", "symfony/dependency-injection": "^4.3", "symfony/http-kernel": "^4.3" diff --git a/tests/App/Fixtures/Connection/ConnectionSqlFixture1.php b/tests/App/Fixtures/Connection/ConnectionSqlFixture1.php index 41382b4..a6936cd 100644 --- a/tests/App/Fixtures/Connection/ConnectionSqlFixture1.php +++ b/tests/App/Fixtures/Connection/ConnectionSqlFixture1.php @@ -6,7 +6,7 @@ final class ConnectionSqlFixture1 extends ConnectionSqlFixture { - protected function filesName(): array + protected function fileNames(): array { return [ __DIR__ . '/Sql/fixture1.sql', diff --git a/tests/KununuTestingBundleTest.php b/tests/KununuTestingBundleTest.php new file mode 100644 index 0000000..b3c06c4 --- /dev/null +++ b/tests/KununuTestingBundleTest.php @@ -0,0 +1,36 @@ +getMockBuilder(ContainerBuilder::class)->getMock(); + $containerMock + ->expects($this->exactly(2)) + ->method('addCompilerPass') + ->withConsecutive( + [ + $this->callback(function($subject) { + return $subject instanceof CachePoolCompilerPass; + }), + ], + [ + $this->callback(function($subject) { + return $subject instanceof DoctrineCompilerPass; + }), + ] + ); + + $bundle = new KununuTestingBundle(); + + $bundle->build($containerMock); + } +}