X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/5e8ec56196f94a86b9600a2dec031ec92afc0170..refs/pull/4467/head:/tests/Entity/BookTest.php diff --git a/tests/Entity/BookTest.php b/tests/Entity/BookTest.php index f124a1690..833cabaae 100644 --- a/tests/Entity/BookTest.php +++ b/tests/Entity/BookTest.php @@ -7,12 +7,9 @@ use BookStack\Entities\Models\BookChild; use BookStack\Entities\Models\Bookshelf; use BookStack\Entities\Repos\BookRepo; use Tests\TestCase; -use Tests\Uploads\UsesImages; class BookTest extends TestCase { - use UsesImages; - public function test_create() { $book = Book::factory()->make([ @@ -333,7 +330,7 @@ class BookTest extends TestCase { $book = $this->entities->book(); $bookRepo = $this->app->make(BookRepo::class); - $coverImageFile = $this->getTestImage('cover.png'); + $coverImageFile = $this->files->uploadedImage('cover.png'); $bookRepo->updateCoverImage($book, $coverImageFile); $this->asEditor()->post($book->getUrl('/copy'), ['name' => 'My copy book']);