File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 49
49
" composer update laravel/framework:10.* orchestra/testbench:8.* nunomaduro/collision:7.* --with-all-dependencies"
50
50
],
51
51
"test" : [
52
+ " testbench workbench:create-sqlite-db" ,
52
53
" testbench package:test"
53
54
],
54
55
"post-autoload-dump" : [
Original file line number Diff line number Diff line change 2
2
3
3
namespace Tests ;
4
4
5
- use Illuminate \Foundation \Testing \LazilyRefreshDatabase ;
5
+ use Illuminate \Foundation \Testing \RefreshDatabase ;
6
6
use Illuminate \Mail \Mailables \Content ;
7
7
use Illuminate \Mail \Mailables \Envelope ;
8
8
use Orchestra \Testbench \Concerns \WithWorkbench ;
@@ -13,7 +13,7 @@ class TestCase extends \Orchestra\Testbench\TestCase
13
13
{
14
14
protected $ invalid ;
15
15
16
- use LazilyRefreshDatabase ;
16
+ use RefreshDatabase ;
17
17
use WithWorkbench;
18
18
19
19
public function setUp (): void
@@ -69,20 +69,23 @@ protected function getEnvironmentSetUp($app)
69
69
'driver ' => $ driver ,
70
70
...match ($ driver ) {
71
71
'sqlite ' => [
72
- 'database ' => ' :memory: ' ,
72
+ 'database ' => database_path ( ' database.sqlite ' ) ,
73
73
],
74
74
'mysql ' => [
75
75
'host ' => '127.0.0.1 ' ,
76
76
'port ' => 3307 ,
77
+ 'database ' => 'test ' ,
78
+ 'username ' => 'test ' ,
79
+ 'password ' => 'test ' ,
77
80
],
78
81
'pgsql ' => [
79
82
'host ' => '127.0.0.1 ' ,
80
83
'port ' => 5432 ,
84
+ 'database ' => 'test ' ,
85
+ 'username ' => 'test ' ,
86
+ 'password ' => 'test ' ,
81
87
],
82
88
},
83
- 'database ' => 'test ' ,
84
- 'username ' => 'test ' ,
85
- 'password ' => 'test ' ,
86
89
]);
87
90
88
91
$ app ['config ' ]->set ('mail.driver ' , 'log ' );
You can’t perform that action at this time.
0 commit comments