2021-11-14 01:52:46 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests;
|
|
|
|
|
2022-08-01 17:40:25 +02:00
|
|
|
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
|
2021-11-14 01:52:46 +01:00
|
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
|
|
|
|
|
|
abstract class FeatureTestCase extends BaseTestCase
|
|
|
|
{
|
|
|
|
use CreatesApplication;
|
|
|
|
|
2022-08-01 17:40:25 +02:00
|
|
|
/**
|
2024-01-29 08:54:21 +01:00
|
|
|
* Refresh db only when test is using database transaction.
|
2021-11-14 01:52:46 +01:00
|
|
|
*/
|
2022-08-01 17:40:25 +02:00
|
|
|
use LazilyRefreshDatabase;
|
2021-11-14 01:52:46 +01:00
|
|
|
|
2022-08-01 17:40:25 +02:00
|
|
|
/**
|
|
|
|
* Perform any work that should take place once the database has finished refreshing.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function afterRefreshingDatabase()
|
2021-11-14 01:52:46 +01:00
|
|
|
{
|
2024-09-26 23:50:01 +02:00
|
|
|
//
|
2021-11-14 01:52:46 +01:00
|
|
|
}
|
|
|
|
}
|