mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-06 12:02:45 +03:00
Merge branch 'v23.02-branch' into development
This commit is contained in:
@@ -162,6 +162,16 @@ class UserManagementTest extends TestCase
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_delete_with_empty_owner_migration_id_works()
|
||||
{
|
||||
$user = $this->users->editor();
|
||||
|
||||
$resp = $this->asAdmin()->delete("settings/users/{$user->id}", ['new_owner_id' => '']);
|
||||
$resp->assertRedirect('/settings/users');
|
||||
$this->assertActivityExists(ActivityType::USER_DELETE);
|
||||
$this->assertSessionHas('success');
|
||||
}
|
||||
|
||||
public function test_delete_removes_user_preferences()
|
||||
{
|
||||
$editor = $this->users->editor();
|
||||
|
Reference in New Issue
Block a user