Created
April 24, 2022 11:44
-
-
Save tkaratug/16ec90e34296a6f0bbf2e6051f371972 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests; | |
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
use Illuminate\Support\Facades\Event; | |
use App\Events\ModelScopeCalled; | |
use HasScopeAssertion; | |
abstract class TestCase extends BaseTestCase | |
{ | |
use CreatesApplication; | |
use HasScopeAssertion; | |
public function setUp(): void | |
{ | |
parent::setUp(); | |
Event::fake([ModelScopeCalled::class]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment