mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
(fake the ConcertAdded event when testing the image is uploaded)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user