Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/Bus/BusBatchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function test_jobs_can_be_added_to_the_batch()
->with('test-connection')
->andReturn($connection = m::mock(stdClass::class));

$connection->shouldReceive('bulk')->once()->with(\Mockery::on(function ($args) use ($job, $secondJob) {
$connection->shouldReceive('bulk')->once()->with(m::on(function ($args) use ($job, $secondJob) {
return
$args[0] == $job &&
$args[1] == $secondJob &&
Expand Down Expand Up @@ -325,7 +325,7 @@ public function test_chain_can_be_added_to_batch()
->with('test-connection')
->andReturn($connection = m::mock(stdClass::class));

$connection->shouldReceive('bulk')->once()->with(\Mockery::on(function ($args) use ($chainHeadJob, $secondJob, $thirdJob) {
$connection->shouldReceive('bulk')->once()->with(m::on(function ($args) use ($chainHeadJob, $secondJob, $thirdJob) {
return
$args[0] == $chainHeadJob
&& serialize($secondJob) == $args[0]->chained[0]
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Console/Scheduling/CallbackEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function testExceptionIsFailure()
$success = null;

$event = (new CallbackEvent(m::mock(EventMutex::class), function () {
throw new \Exception;
throw new Exception;
}))->onSuccess(function () use (&$success) {
$success = true;
})->onFailure(function () use (&$success) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Validation/ValidationValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ public function testCustomExceptionMustExtendValidationException()

$v = new Validator($trans, [], []);

$this->expectException(\InvalidArgumentException::class);
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Exception [RuntimeException] is invalid. It must extend [Illuminate\Validation\ValidationException].');

$v->setException(\RuntimeException::class);
Expand Down