public function BatchTestController::testRedirect in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php \Drupal\batch_test\Controller\BatchTestController::testRedirect()
Redirects successfully.
Return value
array Render array containing success message.
1 string reference to 'BatchTestController::testRedirect'
- batch_test.routing.yml in core/
modules/ system/ tests/ modules/ batch_test/ batch_test.routing.yml - core/modules/system/tests/modules/batch_test/batch_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ batch_test/ src/ Controller/ BatchTestController.php, line 22 - Contains \Drupal\batch_test\Controller\BatchTestController.
Class
- BatchTestController
- Controller routines for batch tests.
Namespace
Drupal\batch_test\ControllerCode
public function testRedirect() {
return array(
'success' => array(
'#markup' => 'Redirection successful.',
),
);
}