]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/PageDraftTest.php
Updated minimum php version from 7.3 to 7.4
[bookstack] / tests / Entity / PageDraftTest.php
index ec6707bc5b8cada845f9f1956499cbcea49e01a3..cac1babea708f3340ac69e41f17f8cf5e582a88b 100644 (file)
@@ -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)",
         ]);