Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
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 | } |
||
41 | } |
||
42 |