]> BookStack Code Mirror - bookstack/blobdiff - tests/CommandsTest.php
Organised activity types and moved most to repos
[bookstack] / tests / CommandsTest.php
index bfc0ac0eb4bb1b8ab6ea9d0c1aae4b8cebcffd05..7e931ee96bc7be5db3b00933fc860cea7a2c2ba7 100644 (file)
@@ -1,5 +1,6 @@
 <?php namespace Tests;
 
+use BookStack\Actions\ActivityType;
 use BookStack\Actions\Comment;
 use BookStack\Actions\CommentRepo;
 use BookStack\Auth\Permissions\JointPermission;
@@ -37,7 +38,7 @@ class CommandsTest extends TestCase
     {
         $this->asEditor();
         $page = Page::first();
-        \Activity::add($page, 'page_update', $page->book->id);
+        \Activity::add($page, ActivityType::PAGE_UPDATE, $page->book->id);
 
         $this->assertDatabaseHas('activities', [
             'key' => 'page_update',