(fake the ConcertAdded event when testing the image is uploaded)

This commit is contained in:
Adam Wathan
2017-11-14 17:18:22 -05:00
parent 3b47ce0477
commit c4d4b2995b

View File

@@ -377,6 +377,7 @@ class AddConcertTest extends TestCase
{
$this->disableExceptionHandling();
Event::fake([ConcertAdded::class]);
Storage::fake('public');
$user = factory(User::class)->create();
$file = File::image('concert-poster.png', 850, 1100);