File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,8 @@ protected function setUp(): void
24
24
25
25
$ this ->db = $ db = new DB ;
26
26
27
- // define database
28
- //$database = __DIR__ . '/tests.sqlite';
29
- $ database = 'tests.sqlite ' ;
30
-
31
- // remove database
32
- file_exists ($ database ) ? unlink ($ database ) : null ;
33
-
34
- // create database
35
- touch ($ database );
27
+ // grab database
28
+ $ database = $ this ->app ['config ' ]['database ' ]['connections ' ]['sqlite ' ]['database ' ];
36
29
37
30
// setup connection
38
31
$ db ->addConnection ([
@@ -111,7 +104,8 @@ public function getEnvironmentSetUp($app)
111
104
$ app ['config ' ]->set ('database.default ' , 'sqlite ' );
112
105
$ app ['config ' ]->set ('database.connections.sqlite ' , [
113
106
'driver ' => 'sqlite ' ,
114
- 'database ' => 'tests.sqlite ' ,
107
+ //'database' => 'tests/tests.sqlite',
108
+ 'database ' => tempnam (sys_get_temp_dir (), 'LaravelLivewireTables ' ),
115
109
'prefix ' => '' ,
116
110
]);
117
111
}
You can’t perform that action at this time.
0 commit comments