function ProcessingTest::assertBatchMessages

Triggers a pass if the texts were found in order in the raw content.

Parameters

$texts: Array of raw strings to look for .

$message: Message to display.

Return value

TRUE on pass, FALSE on fail.

6 calls to ProcessingTest::assertBatchMessages()
ProcessingTest::testBatchForm in drupal/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php
Tests batches defined in a form submit handler.
ProcessingTest::testBatchFormMultipleBatches in drupal/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php
Tests batches defined in different submit handlers on the same form.
ProcessingTest::testBatchFormMultistep in drupal/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php
Tests batches defined in a multistep form.
ProcessingTest::testBatchFormProgrammatic in drupal/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php
Tests batches defined in a programmatically submitted form.
ProcessingTest::testBatchLargePercentage in drupal/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php
Tests batches that return $context['finished'] > 1 do in fact complete.

... See full list

File

drupal/core/modules/system/lib/Drupal/system/Tests/Batch/ProcessingTest.php, line 173
Definition of Drupal\system\Tests\Batch\ProcessingTest.

Class

ProcessingTest
Tests the Batch API.

Namespace

Drupal\system\Tests\Batch

Code

function assertBatchMessages($texts, $message) {
  $pattern = '|' . implode('.*', $texts) . '|s';
  return $this
    ->assertPattern($pattern, $message);
}