Completed
Pull Request — master (#4)
by Alessandro
03:48
created

TestKernel::registerContainerConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Facile\MongoDbBundle;
6
7
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
8
use Symfony\Component\Config\Loader\LoaderInterface;
9
use Symfony\Component\HttpKernel\Kernel;
10
11
/**
12
 * Class TestKernel.
13
 */
14
class TestKernel extends Kernel
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19 2
    public function registerBundles()
20
    {
21
        return [
22 2
            new FrameworkBundle(),
23 2
            new FacileMongoDbBundle(),
24
        ];
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30 1
    public function registerContainerConfiguration(LoaderInterface $loader)
31
    {
32 1
        $loader->load(__DIR__.'/../tests/fixtures/config/config_test.yml');
33
    }
34
}