mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Copied over work from user_permissions branch
Only that relevant to the additional testing work.
This commit is contained in:
@ -16,7 +16,7 @@ class ClearViewsCommandTest extends TestCase
|
||||
$this->get($page->getUrl());
|
||||
|
||||
$this->assertDatabaseHas('views', [
|
||||
'user_id' => $this->getEditor()->id,
|
||||
'user_id' => $this->users->editor()->id,
|
||||
'viewable_id' => $page->id,
|
||||
'views' => 1,
|
||||
]);
|
||||
@ -27,7 +27,7 @@ class ClearViewsCommandTest extends TestCase
|
||||
$this->assertTrue($exitCode === 0, 'Command executed successfully');
|
||||
|
||||
$this->assertDatabaseMissing('views', [
|
||||
'user_id' => $this->getEditor()->id,
|
||||
'user_id' => $this->users->editor()->id,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user