Skip to content

Commit

Permalink
Clean up custom queue Payload between tests (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
deleugpn authored Feb 17, 2021
1 parent 8b78732 commit 3600613
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Concerns/Testing.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Carbon\CarbonImmutable;
use Illuminate\Console\Application as Artisan;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\Queue;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\RefreshDatabase;
Expand Down Expand Up @@ -145,6 +146,8 @@ final protected function tearDownTheTestEnvironment(): void

Artisan::forgetBootstrappers();

Queue::createPayloadUsing(null);

if ($this->callbackException) {
throw $this->callbackException;
}
Expand Down

0 comments on commit 3600613

Please sign in to comment.