You may use SQLite as it is provided out of the box on Travic boxes which uses an in-memory database. You may do so by configuring the database under app/config/testing/database.php
and having something like this in your connections
'sqlite' => array(
'driver' => 'sqlite',
'database' => ':memory:',
'prefix' => '',
)
Then you'll have to make sure that you migrate and seed before every test in your setUp
function using Artisan::call('migrate')
and $this->seed()
. More info at here http://laravel.com/docs/testing#helper-methods
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community