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

SyliusProductBundleTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A its_services_are_intitializable() 0 15 2
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