|
101 | 101 | use Nelmio\ApiDocBundle\NelmioApiDocBundle;
|
102 | 102 | use PHPUnit\Framework\TestCase;
|
103 | 103 | use Prophecy\Argument;
|
104 |
| -use Prophecy\Exception\Doubler\MethodNotFoundException; |
105 | 104 | use Symfony\Bundle\SecurityBundle\SecurityBundle;
|
106 | 105 | use Symfony\Component\Cache\Adapter\ArrayAdapter;
|
107 | 106 | use Symfony\Component\Config\Resource\DirectoryResource;
|
@@ -899,16 +898,16 @@ static function (string $path): string {
|
899 | 898 |
|
900 | 899 | self::assertSame(
|
901 | 900 | $normalizePaths([
|
| 901 | + "{$fixturesDirectory}/Fixtures/TestBundle/Resources/config/api_resources.yml", |
| 902 | + "{$fixturesDirectory}/Fixtures/TestBundle/Resources/config/api_resources/dummy_address.yml", |
| 903 | + "{$fixturesDirectory}/Fixtures/TestBundle/Resources/config/api_resources/my_resource.yml", |
902 | 904 | "{$testsDirectory}/Bridge/Symfony/Bundle/DependencyInjection/Fixtures/resources/B.yaml",
|
903 | 905 | "{$testsDirectory}/Bridge/Symfony/Bundle/DependencyInjection/Fixtures/resources/Bb.yaml",
|
904 | 906 | "{$testsDirectory}/Bridge/Symfony/Bundle/DependencyInjection/Fixtures/resources/a.yaml",
|
905 | 907 | "{$testsDirectory}/Bridge/Symfony/Bundle/DependencyInjection/Fixtures/resources/a/a.yaml",
|
906 | 908 | "{$testsDirectory}/Bridge/Symfony/Bundle/DependencyInjection/Fixtures/resources/b/a.yaml",
|
907 | 909 | "{$testsDirectory}/Bridge/Symfony/Bundle/DependencyInjection/Fixtures/resources/c.yaml",
|
908 | 910 | "{$testsDirectory}/Bridge/Symfony/Bundle/DependencyInjection/Fixtures/resources/c/a.yaml",
|
909 |
| - "{$fixturesDirectory}/Fixtures/TestBundle/Resources/config/api_resources.yml", |
910 |
| - "{$fixturesDirectory}/Fixtures/TestBundle/Resources/config/api_resources/dummy_address.yml", |
911 |
| - "{$fixturesDirectory}/Fixtures/TestBundle/Resources/config/api_resources/my_resource.yml", |
912 | 911 | ]),
|
913 | 912 | $normalizePaths($paths)
|
914 | 913 | );
|
@@ -1037,12 +1036,7 @@ private function getPartialContainerBuilderProphecy($configuration = null)
|
1037 | 1036 | }
|
1038 | 1037 |
|
1039 | 1038 | $containerBuilderProphecy->fileExists(Argument::type('string'))->shouldBeCalled();
|
1040 |
| - |
1041 |
| - try { |
1042 |
| - $containerBuilderProphecy->fileExists(Argument::type('string'))->shouldBeCalled(); |
1043 |
| - } catch (MethodNotFoundException $e) { |
1044 |
| - $containerBuilderProphecy->addResource(Argument::type(ResourceInterface::class))->shouldBeCalled(); |
1045 |
| - } |
| 1039 | + $containerBuilderProphecy->addResource(Argument::type(ResourceInterface::class))->shouldBeCalled(); |
1046 | 1040 |
|
1047 | 1041 | $containerBuilderProphecy->hasExtension('http://symfony.com/schema/dic/services')->shouldBeCalled();
|
1048 | 1042 |
|
|
0 commit comments