Skip to content

Commit 1e27d61

Browse files
committed
Fix tests
1 parent f6297f9 commit 1e27d61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Support/SupportTestingBusFakeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function testAssertDispatchedAfterResponseTimesWithCallbackFunction()
236236
}, 2);
237237
$this->fail();
238238
} catch (ExpectationFailedException $e) {
239-
$this->assertThat($e, new ExceptionMessage('The expected [Illuminate\Tests\Support\OtherBusJobStub] job was pushed 1 times instead of 2 times.'));
239+
$this->assertStringContainsString('The expected [Illuminate\Tests\Support\OtherBusJobStub] job was pushed 1 times instead of 2 times.', $e->getMessage());
240240
}
241241

242242
$this->fake->assertDispatchedAfterResponseTimes(function (OtherBusJobStub $job) {
@@ -298,7 +298,7 @@ public function testAssertDispatchedTimesWithCallbackFunction()
298298
}, 2);
299299
$this->fail();
300300
} catch (ExpectationFailedException $e) {
301-
$this->assertThat($e, new ExceptionMessage('The expected [Illuminate\Tests\Support\OtherBusJobStub] job was pushed 1 times instead of 2 times.'));
301+
$this->assertStringContainsString('The expected [Illuminate\Tests\Support\OtherBusJobStub] job was pushed 1 times instead of 2 times.', $e->getMessage());
302302
}
303303

304304
$this->fake->assertDispatchedTimes(function (OtherBusJobStub $job) {
@@ -352,7 +352,7 @@ public function testAssertDispatchedSyncTimesWithCallbackFunction()
352352
}, 2);
353353
$this->fail();
354354
} catch (ExpectationFailedException $e) {
355-
$this->assertThat($e, new ExceptionMessage('The expected [Illuminate\Tests\Support\OtherBusJobStub] job was synchronously pushed 1 times instead of 2 times.'));
355+
$this->assertStringContainsString('The expected [Illuminate\Tests\Support\OtherBusJobStub] job was synchronously pushed 1 times instead of 2 times.', $e->getMessage());
356356
}
357357

358358
$this->fake->assertDispatchedSyncTimes(function (OtherBusJobStub $job) {

0 commit comments

Comments
 (0)