I am Trying to write tests in laravel, i have been doing this for some time and it has been working well. With this new project, i am supposed to use TDD still and the Refresh Database. When i include use RefreshDatabase, i get an error that i have not been getting with the other projects i have been working on. What could be the problem.
code i am testing.
class ParentsTest extends TestCase
{
use RefreshDatabase;
/** @test */
public function createParentTest(){
$this->withoutExceptionHandling();
$response = $this->post('/create-parent',[
'fname' => 'Julius',
'lname' => 'Ssemakula',
'contact' => '256702913454'
]);
$this->assertDatabaseHas('Parents', ['fname' => 'Julius']);
}
}
the error I get is
1) Tests\Feature\ParentsTest::createParentTest Illuminate\Database\QueryException: could not find driver (SQL: PRAGMA foreign_keys = ON;)