update IntegrationTestCase

This commit is contained in:
Boy132 2024-04-30 00:04:24 +02:00
parent 7a4289cee1
commit fb596fa4f9

View File

@ -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()];
}
}