1 system.test | SystemAuthorizeCase::backdropGetAuthorizePHP($page_title = 'system-test-auth') |
Helper function to initialize authorize.php and load it via backdropGet().
Initializing authorize.php needs to happen in the child Backdrop installation, not the parent. So, we visit a menu callback provided by system_test.module which calls system_authorized_init() to initialize the $_SESSION inside the test site, not the framework site. This callback redirects to authorize.php when it's done initializing.
See also
File
- core/
modules/ system/ tests/ system.test, line 2601 - Tests for system.module.
Class
- SystemAuthorizeCase
- Tests authorize.php and related hooks.
Code
function backdropGetAuthorizePHP($page_title = 'system-test-auth') {
$this->backdropGet('system-test/authorize-init/' . $page_title);
}