diff --git a/tests/Integration/IntegrationTestCase.php b/tests/Integration/IntegrationTestCase.php index 97706721c..b496eeaa0 100644 --- a/tests/Integration/IntegrationTestCase.php +++ b/tests/Integration/IntegrationTestCase.php @@ -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()]; + } }