Completed
Push — tests-organisation ( 421fd1 )
by Kamil
21:24
created

SyliusTaxonomyBundleTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A its_services_are_initializable() 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\TaxonomyBundle\Tests\Functional;
13
14
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
15
use Symfony\Component\DependencyInjection\Container;
16
17
/**
18
 * @author Magdalena Banasiak <[email protected]>
19
 */
20
final class SyliusTaxonomyBundleTest extends KernelTestCase
21
{
22
    /**
23
     * @test
24
     */
25
    public function its_services_are_initializable()
26
    {
27
        static::bootKernel();
28
29
        /** @var Container $container */
30
        $container = self::$kernel->getContainer();
31
32
        $serviceIds = array_filter($container->getServiceIds(), function ($serviceId) {
33
            return 0 === strpos($serviceId, 'sylius.');
34
        });
35
36
        foreach ($serviceIds as $serviceId) {
37
            $container->get($serviceId);
38
        }
39
    }
40
}
41