|
|
|
@ -54,6 +54,9 @@ class UserPhotoHelperTest extends TestCase |
|
|
|
{ |
|
|
|
$photoPath = 'images/user_photo_path.jpg'; |
|
|
|
|
|
|
|
if (!is_dir(storage_path('app/public/images'))) { |
|
|
|
mkdir(storage_path('app/public/images'), 0700); |
|
|
|
} |
|
|
|
copy(public_path('images/icon_user_1.png'), storage_path('app/public/images/user_photo_path.jpg')); |
|
|
|
|
|
|
|
$this->assertFileExists(storage_path('app/public/images/user_photo_path.jpg')); |
|
|
|
|