Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 3, 2020
1 parent 7bc73db commit 7fcc6b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Testing/Fakes/QueueFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ public function assertPushedWithChain($job, $expectedChain = [], $callback = nul
}

/**
* Assert if a job was pushed with empty chain based on a truth-test callback.
* Assert if a job was pushed with an empty chain based on a truth-test callback.
*
* @param string $job
* @param callable|null $callback
* @return void
*/
public function assertPushedWithEmptyChain($job, $callback = null)
public function assertPushedWithoutChain($job, $callback = null)
{
PHPUnit::assertTrue(
$this->pushed($job, $callback)->isNotEmpty(),
Expand Down
4 changes: 2 additions & 2 deletions tests/Support/SupportTestingQueueFakeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ public function testAssertPushedWithChainUsingClassesOrObjectsArray()
]);
}

public function testAssertPushedWithEmptyChain()
public function testAssertPushedWithoutChain()
{
$this->fake->push(new JobWithChainStub([]));

$this->fake->assertPushedWithEmptyChain(JobWithChainStub::class);
$this->fake->assertPushedWithoutChain(JobWithChainStub::class);
}

public function testAssertPushedWithChainSameJobDifferentChains()
Expand Down

0 comments on commit 7fcc6b5

Please sign in to comment.