Code Duplication    Length = 31-34 lines in 2 locations

src/Kunstmaan/MediaBundle/Tests/unit/DependencyInjection/ConfigurationTest.php 1 location

@@ 13-46 (lines=34) @@
10
/**
11
 * Class ConfigurationTest
12
 */
13
class ConfigurationTest extends TestCase
14
{
15
    use ConfigurationTestCaseTrait;
16
17
    /**
18
     * @return \Symfony\Component\Config\Definition\ConfigurationInterface
19
     */
20
    protected function getConfiguration()
21
    {
22
        return new Configuration();
23
    }
24
25
    public function testConfigGeneratesAsExpected()
26
    {
27
        $array = [
28
            'soundcloud_api_key' => 'thisismykey',
29
            'aviary_api_key' => 'apikey',
30
            'remote_video' => [
31
                'vimeo' => false,
32
                'youtube' => true,
33
                'dailymotion' => false,
34
            ],
35
            'enable_pdf_preview' => true,
36
            'blacklisted_extensions' => [],
37
            'web_root' => '%kernel.project_dir%/web',
38
        ];
39
40
        if (Kernel::VERSION_ID >= 40000) {
41
            $array['web_root'] = '%kernel.project_dir%/public';
42
        }
43
44
        $this->assertProcessedConfigurationEquals([$array], $array);
45
    }
46
}
47

src/Kunstmaan/NodeBundle/Tests/unit/DependencyInjection/ConfigurationTest.php 1 location

@@ 12-42 (lines=31) @@
9
/**
10
 * Class ConfigurationTest
11
 */
12
class ConfigurationTest extends TestCase
13
{
14
    use ConfigurationTestCaseTrait;
15
16
    /**
17
     * @return \Symfony\Component\Config\Definition\ConfigurationInterface
18
     */
19
    protected function getConfiguration()
20
    {
21
        return new Configuration();
22
    }
23
24
    public function testConfigGeneratesAsExpected()
25
    {
26
        $array = [
27
            'pages' => [],
28
            'publish_later_stepping' => '15',
29
            'unpublish_later_stepping' => '15',
30
            'show_add_homepage' => true,
31
            'enable_export_page_template' => false,
32
            'lock' => [
33
                'enabled' => true,
34
                'check_interval' => 15,
35
                'threshold' => 35,
36
            ],
37
            'enable_permissions' => true,
38
        ];
39
40
        $this->assertProcessedConfigurationEquals([$array], $array);
41
    }
42
}
43