1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Updated user profile image delete to delete all uploads

Also moved test and made more comprehensive
This commit is contained in:
Dan Brown
2018-01-28 14:08:14 +00:00
parent 35e00ddb95
commit ead4b14d94
4 changed files with 37 additions and 25 deletions

View File

@ -115,19 +115,5 @@ 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
]);
}
}