mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
UserManipulator should change login on deletion.
PHRAS-812
This commit is contained in:
@@ -59,6 +59,9 @@ class UserDeletionTest extends \PhraseanetAuthenticatedWebTestCase
|
||||
$this->apiApplicationManipulator->update($this->apiApplication);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see https://phraseanet.atlassian.net/browse/PHRAS-811
|
||||
*/
|
||||
public function testRemoveUserWhichLoggedViaOAuthDoesNotThrowException()
|
||||
{
|
||||
$app = $this->getApplication();
|
||||
@@ -84,6 +87,16 @@ class UserDeletionTest extends \PhraseanetAuthenticatedWebTestCase
|
||||
$this->apiApplication = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see https://phraseanet.atlassian.net/browse/PHRAS-812
|
||||
*/
|
||||
public function testRemoveUserShouldChangeLogin()
|
||||
{
|
||||
$this->userManipulator->delete($this->user);
|
||||
|
||||
$this->assertNotEquals('login', $this->user->getLogin());
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
if ($this->apiApplication) {
|
||||
|
Reference in New Issue
Block a user