Passed
Push — master ( 13e3f7...984c99 )
by Joachim
02:15
created

getContainerExtensions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Loevgaard\SyliusOptimizeImagesPlugin\Tests\DependencyInjection;
6
7
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
8
use Setono\TinyPngBundle\DependencyInjection\SetonoTinyPngExtension;
9
10
class SetonoTinyPngExtensionTest extends AbstractExtensionTestCase
11
{
12
    protected function getContainerExtensions()
13
    {
14
        return [
15
            new SetonoTinyPngExtension()
16
        ];
17
    }
18
19
    protected function getMinimalConfiguration()
20
    {
21
        return [
22
            'api_key' => 'api key',
23
            'proxy' => 'proxy'
24
        ];
25
    }
26
27
28
    /**
29
     * @test
30
     */
31
    public function parametersHasBeenSet()
32
    {
33
        $this->load();
34
35
        $this->assertContainerBuilderHasParameter('setono.tiny_png.api_key', 'api key');
36
        $this->assertContainerBuilderHasParameter('setono.tiny_png.proxy', 'proxy');
37
    }
38
}
39