X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/2af0021c2bda81d72bff13d4516b0de6d75a6c11..refs/pull/524/head:/tests/ImageTest.php diff --git a/tests/ImageTest.php b/tests/ImageTest.php index 23373419f..3bb41138b 100644 --- a/tests/ImageTest.php +++ b/tests/ImageTest.php @@ -1,6 +1,6 @@ -deleteImage($relPath); $this->seeInDatabase('images', [ - 'url' => url($relPath), + 'url' => $this->baseUrl . $relPath, 'type' => 'gallery', 'uploaded_to' => $page->id, 'path' => $relPath, @@ -86,11 +86,11 @@ class ImageTest extends TestCase $this->assertResponseOk(); $this->dontSeeInDatabase('images', [ - 'url' => $relPath, + 'url' => $this->baseUrl . $relPath, 'type' => 'gallery' ]); - $this->assertFalse(file_exists(public_path($relPath)), 'Uploaded image has been deleted'); + $this->assertFalse(file_exists(public_path($relPath)), 'Uploaded image has not been deleted as expected'); } } \ No newline at end of file