Open
Description
When running PHPUnit and having a class extending from TestCase
and using use RefreshDatabase;
for migrations, it returns an error:
Example class:
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
class ExampleTest extends TestCase
{
use RefreshDatabase;
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$response = $this->get('/');
$response->assertStatus(200);
}
}
Error:
Illuminate\Database\QueryException: could not find driver (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')
Is there something to add to the config.yml file?
Metadata
Metadata
Assignees
Labels
No labels