Completed
Push — 5.1 ( caeb2e...f14ddd )
by Kristof
70:09 queued 59:10
created

getContainerExtensions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Kunstmaan\ArticleBundle\Tests\DependencyInjection;
4
5
use Kunstmaan\AdminBundle\Tests\unit\AbstractPrependableExtensionTestCase;
6
use Kunstmaan\ArticleBundle\DependencyInjection\KunstmaanArticleExtension;
7
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
8
9
/**
10
 * Class KunstmaanArticleExtensionTest
11
 */
12 View Code Duplication
class KunstmaanArticleExtensionTest extends AbstractPrependableExtensionTestCase
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
13
{
14
    /**
15
     * @return ExtensionInterface[]
0 ignored issues
show
Documentation introduced by
Consider making the return type a bit more specific; maybe use KunstmaanArticleExtension[].

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
16
     */
17
    protected function getContainerExtensions()
18
    {
19
        return [new KunstmaanArticleExtension()];
20
    }
21
22
    public function testCorrectParametersHaveBeenSet()
23
    {
24
        $this->container->setParameter('empty_extension', true);
25
        $this->load();
26
27
        $this->assertContainerBuilderHasParameter('empty_extension', true);
28
    }
29
}
30