mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-28 02:40:05 +08:00
Updated tests to suit layout changes, Updated 404 page
- Also replaced 'or' usage in templates with null coalescing operator
This commit is contained in:
@ -65,9 +65,7 @@ class EntityTest extends BrowserKitTest
|
||||
->click('Sort')
|
||||
->seePageIs($bookToSort->getUrl() . '/sort')
|
||||
->seeStatusCode(200)
|
||||
->see($bookToSort->name)
|
||||
// Ensure page shows other books
|
||||
->see($books[1]->name);
|
||||
->see($bookToSort->name);
|
||||
}
|
||||
|
||||
public function test_book_sort_item_returns_book_content()
|
||||
@ -224,15 +222,6 @@ class EntityTest extends BrowserKitTest
|
||||
->click('Revisions')->seeStatusCode(200);
|
||||
}
|
||||
|
||||
public function test_recently_created_pages_view()
|
||||
{
|
||||
$user = $this->getEditor();
|
||||
$content = $this->createEntityChainBelongingToUser($user);
|
||||
|
||||
$this->asAdmin()->visit('/pages/recently-created')
|
||||
->seeInNthElement('.entity-list .page', 0, $content['page']->name);
|
||||
}
|
||||
|
||||
public function test_recently_updated_pages_view()
|
||||
{
|
||||
$user = $this->getEditor();
|
||||
|
Reference in New Issue
Block a user