]> BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
respective book and chapter structure added.
[bookstack] / tests / TestCase.php
index c59f843e94bdd877c4e8601c6d214c1977405e40..b63de307624201899ee8734b0ceabf4b770f9799 100644 (file)
@@ -248,8 +248,8 @@ abstract class TestCase extends BaseTestCase
         $detailsToCheck = ['type' => $type];
 
         if ($entity) {
-            $detailsToCheck['entity_type'] = $entity->getMorphClass();
-            $detailsToCheck['entity_id'] = $entity->id;
+            $detailsToCheck['loggable_type'] = $entity->getMorphClass();
+            $detailsToCheck['loggable_id'] = $entity->id;
         }
 
         if ($detail) {