Codeception with sqlite in memory (laravel)

Submitted by Mahmoud_Zalt - 8 years ago

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');
}