X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/854fd52a27471a3367fcdd3efc690440c59326f2..refs/pull/494/head:/tests/Entity/EntityTest.php diff --git a/tests/Entity/EntityTest.php b/tests/Entity/EntityTest.php index 23c9c96eb..ccc02c4f0 100644 --- a/tests/Entity/EntityTest.php +++ b/tests/Entity/EntityTest.php @@ -150,19 +150,11 @@ class EntityTest extends BrowserKitTest ->seePageIs('/books/my-first-book') ->see($book->name)->see($book->description); - $book = factory(Book::class)->latest(); - $this->assertDatabaseHas('images', [ - 'id' => $book->image - ]); - // Ensure duplicate names are given different slugs $this->asAdmin() ->visit('/books/create') ->type($book->name, '#name') ->type($book->description, '#description') - ->press('Select Image') - ->click('test-image.jpg') - ->press('Select Image') ->press('Save Book'); $expectedPattern = '/\/books\/my-first-book-[0-9a-zA-Z]{3}/';