We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45bf962 commit 5479619Copy full SHA for 5479619
tests/TestCase.php
@@ -9,6 +9,23 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
9
*/
10
protected $baseUrl = 'http://localhost';
11
12
+ /**
13
+ * Creates the application.
14
+ *
15
+ * @return \Illuminate\Foundation\Application
16
+ */
17
+ public function setUp()
18
+ {
19
+ parent::setUp();
20
+ $this->prepareForTests();
21
+ }
22
+
23
+ public function prepareForTests()
24
25
+ Config::set('database.default', 'sqlite');
26
+ Artisan::call('migrate:refresh');
27
28
29
/**
30
* Creates the application.
31
*
0 commit comments