mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Removed prefix route groups, applyed styleci changes
Removing prefix route groups out of visual preference. Those don't really save much and I prefer seeing the complete paths when going down the list to better guage where I am.
This commit is contained in:
@ -188,16 +188,16 @@ class PageDraftTest extends TestCase
|
||||
$draft = Page::query()->where('draft', '=', true)->where('book_id', '=', $book->id)->firstOrFail();
|
||||
|
||||
$resp = $this->put('/ajax/page/' . $draft->id . '/save-draft', [
|
||||
'name' => 'My updated draft',
|
||||
'name' => 'My updated draft',
|
||||
'markdown' => "# My markdown page\n\n[A link](https://example.com)",
|
||||
'html' => '<p>checking markdown takes priority over this</p>'
|
||||
'html' => '<p>checking markdown takes priority over this</p>',
|
||||
]);
|
||||
$resp->assertOk();
|
||||
|
||||
$this->assertDatabaseHas('pages', [
|
||||
'id' => $draft->id,
|
||||
'draft' => true,
|
||||
'name' => 'My updated draft',
|
||||
'id' => $draft->id,
|
||||
'draft' => true,
|
||||
'name' => 'My updated draft',
|
||||
'markdown' => "# My markdown page\n\n[A link](https://example.com)",
|
||||
]);
|
||||
|
||||
|
Reference in New Issue
Block a user