Browse Source

Add sample-image.jpg for testing purpose

pull/1/head
Nafies Luthfi 8 years ago
parent
commit
430f700f36
  1. 1
      storage/app/.gitignore
  2. BIN
      storage/app/sample-image.jpg
  3. 6
      tests/Feature/Users/UserProfileTest.php

1
storage/app/.gitignore

@ -1,3 +1,4 @@
*
!public/
!.gitignore
!sample-image.jpg

BIN
storage/app/sample-image.jpg

After

Width: 640  |  Height: 426  |  Size: 78 KiB

6
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'));
}
}
Loading…
Cancel
Save