public function JobResultTest::testConstructor in Advanced Queue 8
@covers ::__construct @covers ::getState @covers ::getMessage @covers ::getMaxRetries @covers ::getRetryDelay
File
- tests/
src/ Unit/ JobResultTest.php, line 63
Class
- JobResultTest
- @coversDefaultClass \Drupal\advancedqueue\JobResult @group advancedqueue
Namespace
Drupal\Tests\advancedqueue\UnitCode
public function testConstructor() {
$result = new JobResult(Job::STATE_FAILURE, 'Error message', 5);
$this
->assertEquals(Job::STATE_FAILURE, $result
->getState());
$this
->assertEquals('Error message', $result
->getMessage());
$this
->assertEquals(5, $result
->getMaxRetries());
$this
->assertNull($result
->getRetryDelay());
}