Skip to content

Commit 740a060

Browse files
authored
Merge pull request #4454 from Roardom/fix-sync-queue-tests
(Fix) Use sync for the connection queue in tests
2 parents 9968d31 + 2967cc5 commit 740a060

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

phpunit.xml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<ini name="display_errors" value="true"/>
1616
<env name="DB_CONNECTION" value="mysql"/>
1717
<env name="APP_ENV" value="testing"/>
18+
<env name="QUEUE_CONNECTION" value="sync" />
1819
<!--
1920
<env name="REDIS_HOST" value="127.0.0.1" />
2021
<env name="REDIS_PORT" value="6379" />

tests/Feature/Http/Controllers/Staff/MassActionControllerTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use App\Models\PrivateMessage;
2121
use App\Models\User;
2222
use Database\Seeders\GroupsTableSeeder;
23+
use Database\Seeders\UsersTableSeeder;
2324

2425
test('create returns an ok response', function (): void {
2526
$response = $this->get(route('staff.mass-pm.create'));
@@ -37,6 +38,7 @@
3738
});
3839

3940
test('store returns an ok response', function (): void {
41+
$this->seed(UsersTableSeeder::class);
4042
$message = PrivateMessage::factory()->create();
4143

4244
$response = $this->post(route('staff.mass-pm.store'), [

0 commit comments

Comments
 (0)