Support the ongoing development of Laravel.io →
Database Testing
Last updated 1 year ago.
0

You could probably just do like Config::set('database.default', 'mysql'); in that/those test(s).

Last updated 1 year ago.
0

Just a note for anybody else who wants to use this method, this is how I setup the test:

if (Config::get('database.default') == 'sqlite')
{
	Config::set('database.default', 'mysql');

	Artisan::call('migrate:refresh');
}

Works great, thanks!

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

benharold benharold Joined 11 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.