Hi, i just wondering ... is there any way to put some code into our test to grantee our tests using sqlite, if it dose not, tests must not run.
i want our tests, only runs on sqlite.
@kevinbui I have write this code in setUp() ... why it returns null ??
public function setUp(): void
{
parent::setUp();
$this->repo = resolve(StorageRepository::class);
dd(config('DB_CONNECTION')); // returns null
if(config('DB_CONNECTION') == 'mysql'){
dd('The DBMS is Not sqlite, please set your phpunit.xml to sqlite and in memory database to run the tests');
}
}