function ProcessingTest::assertBatchMessages
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Batch/ProcessingTest.php \Drupal\Tests\system\Functional\Batch\ProcessingTest::assertBatchMessages()
- 8.9.x core/modules/system/tests/src/Functional/Batch/ProcessingTest.php \Drupal\Tests\system\Functional\Batch\ProcessingTest::assertBatchMessages()
- 10 core/modules/system/tests/src/Functional/Batch/ProcessingTest.php \Drupal\Tests\system\Functional\Batch\ProcessingTest::assertBatchMessages()
Triggers a pass if the texts were found in order in the raw content.
@internal
Parameters
array $texts: Array of raw strings to look for.
7 calls to ProcessingTest::assertBatchMessages()
- ProcessingTest::testBatchForm in core/
modules/ system/ tests/ src/ Functional/ Batch/ ProcessingTest.php - Tests batches defined in a form submit handler.
- ProcessingTest::testBatchFormMultipleBatches in core/
modules/ system/ tests/ src/ Functional/ Batch/ ProcessingTest.php - Tests batches defined in different submit handlers on the same form.
- ProcessingTest::testBatchFormMultistep in core/
modules/ system/ tests/ src/ Functional/ Batch/ ProcessingTest.php - Tests batches defined in a multistep form.
- ProcessingTest::testBatchFormProgrammatic in core/
modules/ system/ tests/ src/ Functional/ Batch/ ProcessingTest.php - Tests batches defined in a programmatically submitted form.
- ProcessingTest::testBatchLargePercentage in core/
modules/ system/ tests/ src/ Functional/ Batch/ ProcessingTest.php - Tests batches that return $context['finished'] > 1 do in fact complete.
File
-
core/
modules/ system/ tests/ src/ Functional/ Batch/ ProcessingTest.php, line 228
Class
- ProcessingTest
- Tests batch processing in form and non-form workflow.
Namespace
Drupal\Tests\system\Functional\BatchCode
public function assertBatchMessages(array $texts) : void {
$pattern = '|' . implode('.*', $texts) . '|s';
$this->assertSession()
->responseMatches($pattern);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.