mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Login is not longer modified when user is deleted
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user