Login is not longer modified when user is deleted

This commit is contained in:
Nicolas Le Goff
2014-02-20 15:06:08 +01:00
parent 058a4f1c3e
commit 5f355218a8
2 changed files with 0 additions and 2 deletions

View File

@@ -84,7 +84,6 @@ class UserManipulator implements ManipulatorInterface
foreach ($this->makeTraversable($users) as $user) {
$user->setDeleted(true);
$user->setEmail(null);
$user->setLogin(sprintf('(#deleted_%s', $user->getLogin()));
$this->manager->delete($user);
}

View File

@@ -20,7 +20,6 @@ class UserManipulatorTest extends \PhraseanetTestCase
self::$DI['app']['manipulator.user']->delete($user);
$this->assertTrue($user->isDeleted());
$this->assertNull($user->getEmail());
$this->assertEquals('(#deleted_', substr($user->getLogin(), 0, 10));
}
public function testCreateAdminUser()