You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Support/SupportTestingBusFakeTest.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -236,7 +236,7 @@ public function testAssertDispatchedAfterResponseTimesWithCallbackFunction()
236
236
}, 2);
237
237
$this->fail();
238
238
} catch (ExpectationFailedException$e) {
239
-
$this->assertThat($e, newExceptionMessage('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());
@@ -298,7 +298,7 @@ public function testAssertDispatchedTimesWithCallbackFunction()
298
298
}, 2);
299
299
$this->fail();
300
300
} catch (ExpectationFailedException$e) {
301
-
$this->assertThat($e, newExceptionMessage('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());
@@ -352,7 +352,7 @@ public function testAssertDispatchedSyncTimesWithCallbackFunction()
352
352
}, 2);
353
353
$this->fail();
354
354
} catch (ExpectationFailedException$e) {
355
-
$this->assertThat($e, newExceptionMessage('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());
0 commit comments