Skip to content

Commit 5479619

Browse files
chore(tests): Add call to migrate data into sqlite
1 parent 45bf962 commit 5479619

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/TestCase.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
99
*/
1010
protected $baseUrl = 'http://localhost';
1111

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+
1229
/**
1330
* Creates the application.
1431
*

0 commit comments

Comments
 (0)