X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a6c6c6e300c60e4dd2b02501c827571da1adf1be..refs/pull/524/head:/tests/ImageTest.php diff --git a/tests/ImageTest.php b/tests/ImageTest.php index 234988ba4..3bb41138b 100644 --- a/tests/ImageTest.php +++ b/tests/ImageTest.php @@ -1,6 +1,6 @@ -uploadImage($imageName, $page->id); $this->assertResponseOk(); - $this->assertTrue(file_exists(public_path($relPath)), 'Uploaded image exists'); + $this->assertTrue(file_exists(public_path($relPath)), 'Uploaded image not found at path: '. public_path($relPath)); $this->deleteImage($relPath); @@ -70,7 +70,6 @@ class ImageTest extends TestCase 'updated_by' => $admin->id, 'name' => $imageName ]); - } @@ -91,7 +90,7 @@ class ImageTest extends TestCase '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