Code Duplication    Length = 18-19 lines in 9 locations

src/Kunstmaan/ArticleBundle/Tests/unit/DependencyInjection/KunstmaanArticleExtensionTest.php 1 location

@@ 12-29 (lines=18) @@
9
/**
10
 * Class KunstmaanArticleExtensionTest
11
 */
12
class KunstmaanArticleExtensionTest extends AbstractPrependableExtensionTestCase
13
{
14
    /**
15
     * @return ExtensionInterface[]
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

src/Kunstmaan/FixturesBundle/Tests/unit/DependencyInjection/KunstmaanFixturesExtensionTest.php 1 location

@@ 12-29 (lines=18) @@
9
/**
10
 * Class KunstmaanFixturesExtensionTest
11
 */
12
class KunstmaanFixturesExtensionTest extends AbstractPrependableExtensionTestCase
13
{
14
    /**
15
     * @return ExtensionInterface[]
16
     */
17
    protected function getContainerExtensions()
18
    {
19
        return [new KunstmaanFixturesExtension()];
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

src/Kunstmaan/FormBundle/Tests/unit/DependencyInjection/KunstmaanFormExtensionTest.php 1 location

@@ 12-30 (lines=19) @@
9
/**
10
 * Class KunstmaanFormExtensionTest
11
 */
12
class KunstmaanFormExtensionTest extends AbstractPrependableExtensionTestCase
13
{
14
    /**
15
     * @return ExtensionInterface[]
16
     */
17
    protected function getContainerExtensions()
18
    {
19
        return [new KunstmaanFormExtension()];
20
    }
21
22
    public function testCorrectParametersHaveBeenSet()
23
    {
24
        $this->container->setParameter('kernel.root_dir', '/somewhere/over/the/rainbow');
25
        $this->load();
26
27
        $this->assertContainerBuilderHasParameter('kunstmaan_form.form_mailer.class');
28
        $this->assertContainerBuilderHasParameter('kunstmaan_form.form_handler.class');
29
    }
30
}
31

src/Kunstmaan/MediaPagePartBundle/Tests/unit/DependencyInjection/KunstmaanMediaPagePartExtensionTest.php 1 location

@@ 12-29 (lines=18) @@
9
/**
10
 * Class KunstmaanMediaPagePartExtensionTest
11
 */
12
class KunstmaanMediaPagePartExtensionTest extends AbstractPrependableExtensionTestCase
13
{
14
    /**
15
     * @return ExtensionInterface[]
16
     */
17
    protected function getContainerExtensions()
18
    {
19
        return [new KunstmaanMediaPagePartExtension()];
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

src/Kunstmaan/RedirectBundle/Tests/unit/DependencyInjection/KunstmaanRedirectExtensionTest.php 1 location

@@ 12-29 (lines=18) @@
9
/**
10
 * Class KunstmaanRedirectExtensionTest
11
 */
12
class KunstmaanRedirectExtensionTest extends AbstractPrependableExtensionTestCase
13
{
14
    /**
15
     * @return ExtensionInterface[]
16
     */
17
    protected function getContainerExtensions()
18
    {
19
        return [new KunstmaanRedirectExtension()];
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

src/Kunstmaan/SeoBundle/Tests/unit/DependencyInjection/KunstmaanSeoExtensionTest.php 1 location

@@ 12-29 (lines=18) @@
9
/**
10
 * Class KunstmaanSeoExtensionTest
11
 */
12
class KunstmaanSeoExtensionTest extends AbstractPrependableExtensionTestCase
13
{
14
    /**
15
     * @return ExtensionInterface[]
16
     */
17
    protected function getContainerExtensions()
18
    {
19
        return [new KunstmaanSeoExtension()];
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

src/Kunstmaan/SitemapBundle/Tests/unit/DependencyInjection/KunstmaanSiteMapExtensionTest.php 1 location

@@ 12-29 (lines=18) @@
9
/**
10
 * Class KunstmaanSiteMapExtensionTest
11
 */
12
class KunstmaanSiteMapExtensionTest extends AbstractPrependableExtensionTestCase
13
{
14
    /**
15
     * @return ExtensionInterface[]
16
     */
17
    protected function getContainerExtensions()
18
    {
19
        return [new KunstmaanSitemapExtension()];
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

src/Kunstmaan/UserManagementBundle/Tests/unit/DependencyInjection/KunstmaanUserManagementExtensionTest.php 1 location

@@ 12-29 (lines=18) @@
9
/**
10
 * Class KunstmaanUserManagementExtensionTest
11
 */
12
class KunstmaanUserManagementExtensionTest extends AbstractPrependableExtensionTestCase
13
{
14
    /**
15
     * @return ExtensionInterface[]
16
     */
17
    protected function getContainerExtensions()
18
    {
19
        return [new KunstmaanUserManagementExtension()];
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

src/Kunstmaan/UtilitiesBundle/Tests/unit/DependencyInjection/KunstmaanUtilitiesExtensionTest.php 1 location

@@ 12-30 (lines=19) @@
9
/**
10
 * Class KunstmaanUtilitiesExtensionTest
11
 */
12
class KunstmaanUtilitiesExtensionTest extends AbstractPrependableExtensionTestCase
13
{
14
    /**
15
     * @return ExtensionInterface[]
16
     */
17
    protected function getContainerExtensions()
18
    {
19
        return [new KunstmaanUtilitiesExtension()];
20
    }
21
22
    public function testCorrectParametersHaveBeenSet()
23
    {
24
        $this->container->setParameter('empty_extension', true);
25
        $this->container->setParameter('secret', 'super_secret_value');
26
        $this->load();
27
28
        $this->assertContainerBuilderHasParameter('empty_extension', true);
29
    }
30
}
31