]> BookStack Code Mirror - bookstack/blobdiff - tests/Api/ContentPermissionsApiTest.php
DB: Aligned entity structure to a common table
[bookstack] / tests / Api / ContentPermissionsApiTest.php
index a62abacc75e56ba9b2e223330d5a3c04cde1e895..464d62683ad82a6ebfdb6735c5daa8f078931c9e 100644 (file)
@@ -280,7 +280,7 @@ class ContentPermissionsApiTest extends TestCase
         ]);
 
         $resp->assertOk();
-        $this->assertDatabaseHas('pages', ['id' => $page->id, 'owned_by' => $user->id]);
+        $this->assertDatabaseHasEntityData('page', ['id' => $page->id, 'owned_by' => $user->id]);
         $this->assertDatabaseHas('entity_permissions', [
             'entity_id' => $page->id,
             'entity_type' => 'page',