/**
* {@inheritdoc}
*/
protected $defaultTheme = 'starterkit_theme';
/**
* Tests batches triggered outside of form submission.
*/
public function testBatchNoForm() { // Displaying the page triggers batch 1.
$this->
drupalGet('batch-test/no-form'
);
$this->
assertBatchMessages($this->
_resultMessages('batch_1'
));
$this->
assertEquals($this->
_resultStack('batch_1'
),
batch_test_stack(), 'Execution order was correct.'
);
$this->
assertSession()->
pageTextContains('Redirection successful.'
);
} /**
* Tests batches that redirect in the batch finished callback.
*/
public function testBatchRedirectFinishedCallback() { // Displaying the page triggers batch 1.
$this->
drupalGet('batch-test/finish-redirect'
);
$this->
assertBatchMessages($this->
_resultMessages('batch_1'
));