Code Duplication    Length = 14-14 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Content/Location/Gateway/DoctrineDatabaseTest.php 2 locations

@@ 104-117 (lines=14) @@
101
    /**
102
     * @dataProvider getLoadLocationValues
103
     */
104
    public function testLoadLocationDataByContent($field, $value)
105
    {
106
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
107
108
        $gateway = $this->getLocationGateway();
109
110
        $locationsData = $gateway->loadLocationDataByContent(75);
111
112
        $this->assertCount(1, $locationsData);
113
114
        $locationRow = reset($locationsData);
115
116
        $this->assertEquals($value, $locationRow[$field]);
117
    }
118
119
    /**
120
     * @dataProvider getLoadLocationValues
@@ 122-135 (lines=14) @@
119
    /**
120
     * @dataProvider getLoadLocationValues
121
     */
122
    public function testLoadParentLocationDataForDraftContentAll($field, $value)
123
    {
124
        $this->insertDatabaseFixture(__DIR__ . '/_fixtures/full_example_tree.php');
125
126
        $gateway = $this->getLocationGateway();
127
128
        $locationsData = $gateway->loadParentLocationsDataForDraftContent(226);
129
130
        $this->assertCount(1, $locationsData);
131
132
        $locationRow = reset($locationsData);
133
134
        $this->assertEquals($value, $locationRow[$field]);
135
    }
136
137
    public function testLoadLocationDataByContentLimitSubtree()
138
    {