Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 12, 2023
1 parent d50ed3e commit a8920d9
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions tests/Integration/Queue/JobChainingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,18 @@ protected function defineEnvironment($app)

protected function setUp(): void
{
parent::setUp();
$this->afterApplicationCreated(function () {
JobRunRecorder::reset();
});

JobRunRecorder::reset();
}
$this->beforeApplicationDestroyed(function () {
JobChainingTestFirstJob::$ran = false;
JobChainingTestSecondJob::$ran = false;
JobChainingTestThirdJob::$ran = false;
static::$catchCallbackRan = false;
});

protected function tearDown(): void
{
JobChainingTestFirstJob::$ran = false;
JobChainingTestSecondJob::$ran = false;
JobChainingTestThirdJob::$ran = false;
static::$catchCallbackRan = false;

parent::tearDown();
parent::setUp();
}

public function testJobsCanBeChainedOnSuccess()
Expand Down

0 comments on commit a8920d9

Please sign in to comment.