1 batch.test BatchProcessingTestCase::assertBatchMessages($texts, $message)

Will trigger 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.:

File

core/modules/simpletest/tests/batch.test, line 159
Tests for the Batch API.

Class

BatchProcessingTestCase
Tests for the Batch API.

Code

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