Move some tests into their own subfodlers

This commit is contained in:
Jonny Barnes 2017-12-18 17:53:22 +00:00
parent 0dd6adfa0e
commit e1aa814d8c
18 changed files with 29 additions and 31 deletions

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use Tests\TestCase;
use App\Jobs\AddClientToDatabase;

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use Tests\TestCase;
use GuzzleHttp\Client;

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use App\Bookmark;
use Tests\TestCase;

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use Storage;
use Tests\TestCase;
@ -24,7 +24,7 @@ class ProcessMediaJobTest extends TestCase
{
Storage::fake('s3');
$manager = app()->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);

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use App\Note;
use Tests\TestCase;

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use Tests\TestCase;
use GuzzleHttp\Client;

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use App\Note;
use Tests\TestCase;

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use App\Bookmark;
use Tests\TestCase;

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use App\Bookmark;
use Tests\TestCase;

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use App\Note;
use Tests\TestCase;

View file

@ -1,6 +1,6 @@
<?php
namespace Tests\Unit;
namespace Tests\Unit\Jobs;
use App\Note;
use Tests\TestCase;