mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-15 21:53:31 +00:00
(switch from S3 to public driver for easier local demos)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user