mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-15 07:53:29 +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();
|
$this->disableExceptionHandling();
|
||||||
|
|
||||||
|
Event::fake([ConcertAdded::class]);
|
||||||
Storage::fake('public');
|
Storage::fake('public');
|
||||||
$user = factory(User::class)->create();
|
$user = factory(User::class)->create();
|
||||||
$file = File::image('concert-poster.png', 850, 1100);
|
$file = File::image('concert-poster.png', 850, 1100);
|
||||||
|
|||||||
Reference in New Issue
Block a user