Code Duplication    Length = 10-11 lines in 2 locations

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

@@ 178-188 (lines=11) @@
175
        );
176
    }
177
178
    public function testDeleteNonExistingUser()
179
    {
180
        $handler = $this->getUserHandler();
181
182
        $handler->delete(1337);
183
        $this->assertQueryResult(
184
            [[0]],
185
            $this->handler->createSelectQuery()->select('COUNT( * )')->from('ezuser'),
186
            'Expected no existing user.'
187
        );
188
    }
189
190
    public function testUpdateUser()
191
    {
@@ 222-231 (lines=10) @@
219
        );
220
    }
221
222
    public function testSilentlyUpdateNotExistingUser()
223
    {
224
        $handler = $this->getUserHandler();
225
        $handler->update($this->getValidUser());
226
        $this->assertQueryResult(
227
            [[0]],
228
            $this->handler->createSelectQuery()->select('COUNT( * )')->from('ezuser'),
229
            'Expected no existing user.'
230
        );
231
    }
232
233
    public function testCreateNewRoleWithoutPolicies()
234
    {