crisward's avatar

Dealing with differences between sqlite and mysql

I'm quite new to laravel. However I've been building an api using TDD. On a couple of occasions my tests fail with the test sqlite in memory, but pass with mysql.

In one instance I wrote a wrapper to make it pass for both by detecting with if(\Config::get('database.default')=="mysql")

I was wondering how others handle this.

0 likes
2 replies

Please or to participate in this conversation.