| 1 | <?php |
||
| 19 | use Symfony\Component\DependencyInjection\ContainerInterface; |
||
| 20 | |||
| 21 | final class SyliusInventoryBundleTest extends WebTestCase |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @test |
||
| 25 | */ |
||
| 26 | public function its_services_are_initializable(): void |
||
| 27 | { |
||
| 28 | /** @var ContainerBuilder $container */ |
||
| 29 | $container = self::createClient()->getContainer(); |
||
| 30 | |||
| 31 | $services = $container->getServiceIds(); |
||
| 32 | |||
| 33 | $services = array_filter($services, function (string $serviceId): bool { |
||
| 34 | return 0 === strpos($serviceId, 'sylius.'); |
||
| 35 | }); |
||
| 36 | |||
| 37 | foreach ($services as $id) { |
||
| 38 | Assert::assertNotNull($container->get($id, ContainerInterface::NULL_ON_INVALID_REFERENCE)); |
||
| 39 | } |
||
| 40 | } |
||
| 42 |