]> BookStack Code Mirror - bookstack/blobdiff - tests/Api/PagesApiTest.php
Added additional testing for editor switching permissions
[bookstack] / tests / Api / PagesApiTest.php
index b91d96d892c74402e9ac79990bbcdcad663d56f0..f857db96d83af38659e85cbb71fd348516ee98b6 100644 (file)
@@ -252,7 +252,9 @@ class PagesApiTest extends TestCase
             'tags' => [['name' => 'Category', 'value' => 'Testing']]
         ];
 
-        $this->putJson($this->baseEndpoint . "/{$page->id}", $details);
+        $resp = $this->putJson($this->baseEndpoint . "/{$page->id}", $details);
+        $resp->assertOk();
+
         $page->refresh();
         $this->assertGreaterThan(Carbon::now()->subDay()->unix(), $page->updated_at->unix());
     }