mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 04:04:45 +02:00
update IntegrationTestCase
This commit is contained in:
parent
7a4289cee1
commit
fb596fa4f9
@ -10,14 +10,13 @@ use App\Events\ActivityLogged;
|
||||
use App\Tests\Assertions\AssertsActivityLogged;
|
||||
use App\Tests\Traits\Integration\CreatesTestModels;
|
||||
use App\Transformers\Api\Application\BaseTransformer;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
abstract class IntegrationTestCase extends TestCase
|
||||
{
|
||||
use AssertsActivityLogged;
|
||||
use CreatesTestModels;
|
||||
|
||||
protected array $connectionsToTransact = ['mysql'];
|
||||
|
||||
protected $defaultHeaders = [
|
||||
'Accept' => 'application/json',
|
||||
];
|
||||
@ -38,4 +37,14 @@ abstract class IntegrationTestCase extends TestCase
|
||||
->setTimezone(BaseTransformer::RESPONSE_TIMEZONE)
|
||||
->toAtomString();
|
||||
}
|
||||
|
||||
/**
|
||||
* The database connections that should have transactions.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function connectionsToTransact()
|
||||
{
|
||||
return [DB::getDriverName()];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user