Code Duplication    Length = 15-15 lines in 2 locations

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

@@ 203-217 (lines=15) @@
200
    /**
201
     * @covers eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase::countContentObjectsInSection
202
     */
203
    public function testCountContentObjectsInSection()
204
    {
205
        $this->insertDatabaseFixture(
206
            __DIR__ . '/../../_fixtures/contentobjects.php'
207
        );
208
209
        $gateway = $this->getDatabaseGateway();
210
211
        $result = $gateway->countContentObjectsInSection(2);
212
213
        $this->assertSame(
214
            7,
215
            $result
216
        );
217
    }
218
219
    /**
220
     * @covers eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase::countRoleAssignmentsUsingSection
@@ 222-236 (lines=15) @@
219
    /**
220
     * @covers eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase::countRoleAssignmentsUsingSection
221
     */
222
    public function testCountRoleAssignmentsUsingSection()
223
    {
224
        $this->insertDatabaseFixture(
225
            __DIR__ . '/../../../User/_fixtures/roles.php'
226
        );
227
228
        $gateway = $this->getDatabaseGateway();
229
230
        $result = $gateway->countRoleAssignmentsUsingSection(2);
231
232
        $this->assertSame(
233
            1,
234
            $result
235
        );
236
    }
237
238
    /**
239
     * @covers eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase::deleteSection