diff --git a/storage/app/.gitignore b/storage/app/.gitignore index 8f4803c..a69799c 100755 --- a/storage/app/.gitignore +++ b/storage/app/.gitignore @@ -1,3 +1,4 @@ * !public/ !.gitignore +!sample-image.jpg \ No newline at end of file diff --git a/storage/app/sample-image.jpg b/storage/app/sample-image.jpg new file mode 100755 index 0000000..2deb5a7 Binary files /dev/null and b/storage/app/sample-image.jpg differ diff --git a/tests/Feature/Users/UserProfileTest.php b/tests/Feature/Users/UserProfileTest.php index 1b5f35a..625effd 100644 --- a/tests/Feature/Users/UserProfileTest.php +++ b/tests/Feature/Users/UserProfileTest.php @@ -100,7 +100,7 @@ class UserProfileTest extends TestCase $user = $this->adminUserSigningIn(); $this->visit(route('users.agency.edit')); - $this->attach(storage_path('app/guitar-640.jpg'), 'logo'); + $this->attach(storage_path('app/sample-image.jpg'), 'logo'); $this->press(trans('agency.logo_upload')); $this->see(trans('agency.updated')); @@ -108,9 +108,9 @@ class UserProfileTest extends TestCase $this->seeInDatabase('site_options', [ 'key' => 'agency_logo_path', - 'value' => 'guitar-640.jpg', + 'value' => 'sample-image.jpg', ]); - $this->assertFileExistsThenDelete(public_path('assets/imgs/guitar-640.jpg')); + $this->assertFileExistsThenDelete(public_path('assets/imgs/sample-image.jpg')); } }