File tree 2 files changed +3
-0
lines changed
tests/Feature/Http/Controllers/Staff
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 15
15
<ini name =" display_errors" value =" true" />
16
16
<env name =" DB_CONNECTION" value =" mysql" />
17
17
<env name =" APP_ENV" value =" testing" />
18
+ <env name =" QUEUE_CONNECTION" value =" sync" />
18
19
<!--
19
20
<env name="REDIS_HOST" value="127.0.0.1" />
20
21
<env name="REDIS_PORT" value="6379" />
Original file line number Diff line number Diff line change 20
20
use App \Models \PrivateMessage ;
21
21
use App \Models \User ;
22
22
use Database \Seeders \GroupsTableSeeder ;
23
+ use Database \Seeders \UsersTableSeeder ;
23
24
24
25
test ('create returns an ok response ' , function (): void {
25
26
$ response = $ this ->get (route ('staff.mass-pm.create ' ));
37
38
});
38
39
39
40
test ('store returns an ok response ' , function (): void {
41
+ $ this ->seed (UsersTableSeeder::class);
40
42
$ message = PrivateMessage::factory ()->create ();
41
43
42
44
$ response = $ this ->post (route ('staff.mass-pm.store ' ), [
You can’t perform that action at this time.
0 commit comments