X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/0f113ec41f328eab6af78097d47c28d9cb99d893..refs/pull/4467/head:/tests/Entity/BookTest.php diff --git a/tests/Entity/BookTest.php b/tests/Entity/BookTest.php index 8435c534f..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([ @@ -247,7 +244,7 @@ class BookTest extends TestCase 'name' => 'информация', ]); - $this->assertEquals('informaciya', $book->slug); + $this->assertEquals('informaciia', $book->slug); $book = $this->entities->newBook([ 'name' => '¿Qué?', @@ -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']);