diff --git a/tests/Feature/AdminHomeControllerTest.php b/tests/Feature/Admin/AdminHomeControllerTest.php similarity index 79% rename from tests/Feature/AdminHomeControllerTest.php rename to tests/Feature/Admin/AdminHomeControllerTest.php index 20a259e0..e6366d08 100644 --- a/tests/Feature/AdminHomeControllerTest.php +++ b/tests/Feature/Admin/AdminHomeControllerTest.php @@ -1,9 +1,8 @@ withSession([ @@ -97,7 +97,7 @@ class ContactsAdminTest extends TestCase 'avatar' => $file, ]); $this->assertFileEquals( - __DIR__ . '/../aaron.png', + __DIR__ . '/../../aaron.png', public_path() . '/assets/profile-images/tantek.com/image' ); } @@ -121,7 +121,7 @@ class ContactsAdminTest extends TestCase HTML; - $file = fopen(__DIR__ . '/../aaron.png', 'r'); + $file = fopen(__DIR__ . '/../../aaron.png', 'r'); $mock = new MockHandler([ new Response(200, ['Content-Type' => 'text/html'], $html), new Response(200, ['Content-Type' => 'iamge/png'], $file), @@ -135,7 +135,7 @@ HTML; ])->get('/admin/contacts/1/getavatar'); $this->assertFileEquals( - __DIR__ . '/../aaron.png', + __DIR__ . '/../../aaron.png', public_path() . '/assets/profile-images/tantek.com/image' ); } diff --git a/tests/Feature/NotesAdminTest.php b/tests/Feature/Admin/NotesTest.php similarity index 96% rename from tests/Feature/NotesAdminTest.php rename to tests/Feature/Admin/NotesTest.php index c0341263..b7b77757 100644 --- a/tests/Feature/NotesAdminTest.php +++ b/tests/Feature/Admin/NotesTest.php @@ -1,13 +1,13 @@ make(ImageManager::class); - Storage::disk('local')->put('aaron.png', file_get_contents(__DIR__.'/../aaron.png')); + Storage::disk('local')->put('aaron.png', file_get_contents(__DIR__.'/../../aaron.png')); $job = new ProcessMedia('aaron.png'); $job->handle($manager); @@ -34,7 +34,7 @@ class ProcessMediaJobTest extends TestCase public function test_large_images_have_smaller_files_created() { $manager = app()->make(ImageManager::class); - Storage::disk('local')->put('test-image.jpg', file_get_contents(__DIR__.'/../test-image.jpg')); + Storage::disk('local')->put('test-image.jpg', file_get_contents(__DIR__.'/../../test-image.jpg')); Storage::fake('s3'); $job = new ProcessMedia('test-image.jpg'); $job->handle($manager); diff --git a/tests/Unit/ProcessWebMentionJobTest.php b/tests/Unit/Jobs/ProcessWebMentionJobTest.php similarity index 99% rename from tests/Unit/ProcessWebMentionJobTest.php rename to tests/Unit/Jobs/ProcessWebMentionJobTest.php index a631063d..a45c844a 100644 --- a/tests/Unit/ProcessWebMentionJobTest.php +++ b/tests/Unit/Jobs/ProcessWebMentionJobTest.php @@ -1,6 +1,6 @@