Code Duplication    Length = 18-18 lines in 2 locations

eZ/Bundle/EzPublishCoreBundle/Tests/DependencyInjection/Configuration/Parser/CommonTest.php 2 locations

@@ 71-88 (lines=18) @@
68
    /**
69
     * @expectedException \InvalidArgumentException
70
     */
71
    public function testDatabaseSingleSiteaccess()
72
    {
73
        $this->load(
74
            array(
75
                'system' => array(
76
                    'ezdemo_site' => array(
77
                        'database' => array(
78
                            'type' => 'sqlite',
79
                            'server' => 'localhost',
80
                            'user' => 'root',
81
                            'password' => 'root',
82
                            'database_name' => 'ezdemo',
83
                        ),
84
                    ),
85
                ),
86
            )
87
        );
88
    }
89
90
    /**
91
     * @expectedException \InvalidArgumentException
@@ 93-110 (lines=18) @@
90
    /**
91
     * @expectedException \InvalidArgumentException
92
     */
93
    public function testDatabaseSiteaccessGroup()
94
    {
95
        $this->load(
96
            array(
97
                'system' => array(
98
                    'ezdemo_group' => array(
99
                        'database' => array(
100
                            'type' => 'sqlite',
101
                            'server' => 'localhost',
102
                            'user' => 'root',
103
                            'password' => 'root',
104
                            'database_name' => 'ezdemo',
105
                        ),
106
                    ),
107
                ),
108
            )
109
        );
110
    }
111
112
    /**
113
     * Test defaults.