Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 1, 2024
1 parent bca9018 commit 5c9a101
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/Support/SupportTestingQueueFakeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,11 @@ public function testAssertChainUsingClassesOrObjectsArray()
new JobStub,
]);

$job->assertChain([
$job->assertHasChain([
JobStub::class,
]);

$job->assertChain([
$job->assertHasChain([
new JobStub(),
]);
}
Expand All @@ -437,7 +437,7 @@ public function testAssertNoChain()
{
$job = new JobWithChainStub([]);

$job->assertNoChain();
$job->assertDoesntHaveChain();
}

public function testAssertChainErrorHandling()
Expand All @@ -447,14 +447,14 @@ public function testAssertChainErrorHandling()
]);

try {
$job->assertChain([]);
$job->assertHasChain([]);
$this->fail();
} catch (ExpectationFailedException $e) {
$this->assertStringContainsString('The expected chain can not be empty.', $e->getMessage());
}

try {
$job->assertChain([
$job->assertHasChain([
new JobStub,
new JobStub,
]);
Expand All @@ -464,7 +464,7 @@ public function testAssertChainErrorHandling()
}

try {
$job->assertChain([
$job->assertHasChain([
JobStub::class,
JobStub::class,
]);
Expand All @@ -474,7 +474,7 @@ public function testAssertChainErrorHandling()
}

try {
$job->assertNoChain();
$job->assertDoesntHaveChain();
$this->fail();
} catch (ExpectationFailedException $e) {
$this->assertStringContainsString('The job has chained jobs.', $e->getMessage());
Expand Down

0 comments on commit 5c9a101

Please sign in to comment.