UserManipulator should change login on deletion.

PHRAS-812
This commit is contained in:
Benoît Burnichon
2015-12-09 12:52:53 +01:00
parent 5bb8d4167b
commit c1e8bb0552
2 changed files with 14 additions and 0 deletions

View File

@@ -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) {