You are here

public function SubmissionsCompletedSinceLastSuccessTest::testAllResultsAreIncludedForFailedTask in Webform Scheduled Tasks 8.2

@covers ::getResultSet

File

tests/src/Kernel/SubmissionsCompletedSinceLastSuccessTest.php, line 176

Class

SubmissionsCompletedSinceLastSuccessTest
Submissions since last success result set plugin test.

Namespace

Drupal\Tests\webform_scheduled_tasks\Kernel

Code

public function testAllResultsAreIncludedForFailedTask() {
  $submissions = [
    $this
      ->createTestSubmission(),
    $this
      ->createTestSubmission(),
    $this
      ->createTestSubmission(),
  ];
  $this
    ->assertSubmissionResults($submissions);
  $this->schedule
    ->registerFailedTask();
  $this
    ->assertSubmissionResults($submissions);
  $this->schedule
    ->registerFailedTask();
}