Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit eff3c8a

Browse files
committed
move pics for testing to a Resources folder.
1 parent ef17b06 commit eff3c8a

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

tests/Feature/Assets/UploadImageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function test_it_uploads_an_image_from_direct_file()
2020
$this->expectsEvents([
2121
AssetWasCreated::class
2222
]);
23-
$file = base64_encode(file_get_contents(base_path('tests/pic.png')));
23+
$file = base64_encode(file_get_contents(base_path('tests/Resources/pic.png')));
2424
Passport::actingAs(
2525
factory(User::class)->create()
2626
);
@@ -53,7 +53,7 @@ function test_it_verifies_max_file_size()
5353
Passport::actingAs(
5454
factory(User::class)->create()
5555
);
56-
$file = file_get_contents(__DIR__.'/../../bigpic.jpg');
56+
$file = base64_encode(file_get_contents(base_path('tests/Resources/bigpic.jpg')));
5757
$server = $this->transformHeadersToServerVars([
5858
'Content-Type' => 'image/jpeg',
5959
'Content-Length' => mb_strlen($file)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)