inside the testing folder add a database.php film with the following configuration:
<?php
return array(
'default' => 'sqlite',
'connections' => array(
'sqlite' => array(
'driver' => 'sqlite',
'database' => ':memory:',
'prefix' => '',
),
),
);
in the test file:
-----------------
public function _before(FunctionalTester $I)
{
$I->wantTo('Migrate the Database');
Artisan::call('migrate');
}