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\Assertions\AssertsActivityLogged;
|
||||||
use App\Tests\Traits\Integration\CreatesTestModels;
|
use App\Tests\Traits\Integration\CreatesTestModels;
|
||||||
use App\Transformers\Api\Application\BaseTransformer;
|
use App\Transformers\Api\Application\BaseTransformer;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
abstract class IntegrationTestCase extends TestCase
|
abstract class IntegrationTestCase extends TestCase
|
||||||
{
|
{
|
||||||
use AssertsActivityLogged;
|
use AssertsActivityLogged;
|
||||||
use CreatesTestModels;
|
use CreatesTestModels;
|
||||||
|
|
||||||
protected array $connectionsToTransact = ['mysql'];
|
|
||||||
|
|
||||||
protected $defaultHeaders = [
|
protected $defaultHeaders = [
|
||||||
'Accept' => 'application/json',
|
'Accept' => 'application/json',
|
||||||
];
|
];
|
||||||
@ -38,4 +37,14 @@ abstract class IntegrationTestCase extends TestCase
|
|||||||
->setTimezone(BaseTransformer::RESPONSE_TIMEZONE)
|
->setTimezone(BaseTransformer::RESPONSE_TIMEZONE)
|
||||||
->toAtomString();
|
->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