Code Duplication    Length = 10-11 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/User/UserHandlerTest.php 2 locations

@@ 255-265 (lines=11) @@
252
        );
253
    }
254
255
    public function testDeleteNonExistingUser()
256
    {
257
        $handler = $this->getUserHandler();
258
259
        $handler->delete(1337);
260
        $this->assertQueryResult(
261
            array(array(0)),
262
            $this->handler->createSelectQuery()->select('COUNT( * )')->from('ezuser'),
263
            'Expected no existing user.'
264
        );
265
    }
266
267
    public function testUpdateUser()
268
    {
@@ 299-308 (lines=10) @@
296
        );
297
    }
298
299
    public function testSilentlyUpdateNotExistingUser()
300
    {
301
        $handler = $this->getUserHandler();
302
        $handler->update($this->getValidUser());
303
        $this->assertQueryResult(
304
            array(array(0)),
305
            $this->handler->createSelectQuery()->select('COUNT( * )')->from('ezuser'),
306
            'Expected no existing user.'
307
        );
308
    }
309
310
    public function testCreateNewRoleWithoutPolicies()
311
    {