]> BookStack Code Mirror - bookstack/blobdiff - tests/Commands/CopyShelfPermissionsCommandTest.php
Quick run through of applying new test entity helper class
[bookstack] / tests / Commands / CopyShelfPermissionsCommandTest.php
index bd96f2cc559e990d0ecfe84978912c89d8d0fded..55b710ba9afeb28d8854426d37ed7a940ed0a04d 100644 (file)
@@ -16,7 +16,7 @@ class CopyShelfPermissionsCommandTest extends TestCase
 
     public function test_copy_shelf_permissions_command_using_slug()
     {
-        $shelf = Bookshelf::first();
+        $shelf = $this->entities->shelf();
         $child = $shelf->books()->first();
         $editorRole = $this->getEditor()->roles()->first();
         $this->assertFalse(boolval($child->restricted), 'Child book should not be restricted by default');