. */ namespace Tests; use App\PhoneCountry; use App\Http\Middleware\Space; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; use Illuminate\Foundation\Testing\RefreshDatabase; abstract class TestCase extends BaseTestCase { use CreatesApplication; use RefreshDatabase; use TestUtilsTrait; protected $route = '/api/accounts/me'; protected $method = 'GET'; public function setUp(): void { parent::setUp(); $this->withoutMiddleware([Space::class]); PhoneCountry::truncate(); PhoneCountry::factory()->france()->activated()->create(); PhoneCountry::factory()->netherlands()->create(); } }