19 lines
363 B
PHP
19 lines
363 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
use Spatie\Permission\PermissionRegistrar;
|
|
|
|
abstract class TestCase extends BaseTestCase
|
|
{
|
|
use CreatesApplication;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->app->make(PermissionRegistrar::class)->forgetCachedPermissions();
|
|
}
|
|
}
|