mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
* Issue-630: Fixed issue with deleting user profile pics when deleting a user. * Issue #630: Deleting user's profile pics on deleting of user account * Issue-630: Added test case for deleting user
This commit is contained in:
@ -115,4 +115,19 @@ class UserProfileTest extends BrowserKitTest
|
||||
->visit('/books')
|
||||
->pageHasElement('.featured-image-container');
|
||||
}
|
||||
|
||||
public function test_user_delete()
|
||||
{
|
||||
$newUser = $this->getNewBlankUser();
|
||||
$this->actingAs($newUser);
|
||||
$this->asAdmin()->visit('/settings/users/' . $newUser->id . '/delete')
|
||||
->see('Delete User')
|
||||
->press('Confirm')
|
||||
->seePageIs('/settings/users/')
|
||||
->see('USERS')->see('ADD NEW USER');
|
||||
|
||||
$this->dontSeeInDatabase('images', [
|
||||
'id' => $newUser->image_id
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user