(switch from S3 to public driver for easier local demos)

This commit is contained in:
Adam Wathan
2017-11-14 11:16:54 -05:00
parent 57e1ce97a7
commit 21050b04f4
2 changed files with 7 additions and 7 deletions

View File

@@ -375,7 +375,7 @@ class AddConcertTest extends TestCase
{
$this->disableExceptionHandling();
Storage::fake('s3');
Storage::fake('public');
$user = factory(User::class)->create();
$file = File::image('concert-poster.png', 850, 1100);
@@ -385,10 +385,10 @@ class AddConcertTest extends TestCase
tap(Concert::first(), function ($concert) use ($file) {
$this->assertNotNull($concert->poster_image_path);
Storage::disk('s3')->assertExists($concert->poster_image_path);
Storage::disk('public')->assertExists($concert->poster_image_path);
$this->assertFileEquals(
$file->getPathname(),
Storage::disk('s3')->path($concert->poster_image_path)
Storage::disk('public')->path($concert->poster_image_path)
);
});
}
@@ -396,7 +396,7 @@ class AddConcertTest extends TestCase
/** @test */
function poster_image_must_be_an_image()
{
Storage::fake('s3');
Storage::fake('public');
$user = factory(User::class)->create();
$file = File::create('not-a-poster.pdf');
@@ -412,7 +412,7 @@ class AddConcertTest extends TestCase
/** @test */
function poster_image_must_be_at_least_400px_wide()
{
Storage::fake('s3');
Storage::fake('public');
$user = factory(User::class)->create();
$file = File::image('poster.png', 399, 516);
@@ -428,7 +428,7 @@ class AddConcertTest extends TestCase
/** @test */
function poster_image_must_have_letter_aspect_ratio()
{
Storage::fake('s3');
Storage::fake('public');
$user = factory(User::class)->create();
$file = File::image('poster.png', 851, 1100);