Code Duplication    Length = 15-15 lines in 2 locations

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

@@ 190-204 (lines=15) @@
187
        );
188
    }
189
190
    public function testUpdateUser()
191
    {
192
        $handler = $this->getUserHandler();
193
194
        $handler->create($user = $this->getValidUser());
195
196
        $user->login = 'New_lögin';
197
        $handler->update($user);
198
199
        $this->assertQueryResult(
200
            [[42, '[email protected]', 'New_lögin', 1234567890, '2']],
201
            $this->handler->createSelectQuery()->select('*')->from('ezuser'),
202
            'Expected user data to be updated.'
203
        );
204
    }
205
206
    public function testUpdateUserSettings()
207
    {
@@ 206-220 (lines=15) @@
203
        );
204
    }
205
206
    public function testUpdateUserSettings()
207
    {
208
        $handler = $this->getUserHandler();
209
210
        $handler->create($user = $this->getValidUser());
211
212
        $user->maxLogin = 42;
213
        $handler->update($user);
214
215
        $this->assertQueryResult(
216
            [[1, 42, 42]],
217
            $this->handler->createSelectQuery()->select('*')->from('ezuser_setting'),
218
            'Expected user data to be updated.'
219
        );
220
    }
221
222
    public function testSilentlyUpdateNotExistingUser()
223
    {