Completed
Push — locale-in-url ( f95194...93251b )
by Kamil
21:02
created

its_services_are_intitializable()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 15
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 7
nc 2
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sylius\Bundle\ProductBundle\Tests;
13
14
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
15
use Symfony\Component\DependencyInjection\ContainerInterface;
16
17
/**
18
 * @author Magdalena Banasiak <[email protected]>
19
 */
20
class SyliusProductBundleTest extends WebTestCase
21
{
22
    /**
23
     * @test
24
     */
25
    public function its_services_are_intitializable()
26
    {
27
        /** @var ContainerInterface $container */
28
        $container = self::createClient()->getContainer();
29
30
        $services = $container->getServiceIds();
31
32
        $services = array_filter($services, function ($serviceId) {
33
            return false !== strpos($serviceId, 'sylius');
34
        });
35
36
        foreach ($services as $id) {
37
            $container->get($id);
38
        }
39
    }
40
}
41