Permalink
Browse files

chore(tests): Add call to migrate data into sqlite

  • Loading branch information...
1 parent 45bf962 commit 547961938bf3c739c1aaebc2fcd588a436b3bdfd @unicodeveloper committed Feb 24, 2016
Showing with 17 additions and 0 deletions.
  1. +17 −0 tests/TestCase.php
View
@@ -14,6 +14,23 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
*
* @return \Illuminate\Foundation\Application
*/
+ public function setUp()
+ {
+ parent::setUp();
+ $this->prepareForTests();
+ }
+
+ public function prepareForTests()
+ {
+ Config::set('database.default', 'sqlite');
+ Artisan::call('migrate:refresh');
+ }
+
+ /**
+ * Creates the application.
+ *
+ * @return \Illuminate\Foundation\Application
+ */
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';

0 comments on commit 5479619

Please sign in to comment.