You are here

public function JobResultTest::testSuccess in Advanced Queue 8

@covers ::success @covers ::getState @covers ::getMessage

File

tests/src/Unit/JobResultTest.php, line 20

Class

JobResultTest
@coversDefaultClass \Drupal\advancedqueue\JobResult @group advancedqueue

Namespace

Drupal\Tests\advancedqueue\Unit

Code

public function testSuccess() {
  $result = JobResult::success('We did it');
  $this
    ->assertEquals(Job::STATE_SUCCESS, $result
    ->getState());
  $this
    ->assertEquals('We did it', $result
    ->getMessage());
}