function SystemAuthorizeTest::drupalGetAuthorizePHP in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/System/SystemAuthorizeTest.php \Drupal\system\Tests\System\SystemAuthorizeTest::drupalGetAuthorizePHP()
Helper function to initialize authorize.php and load it via drupalGet().
Initializing authorize.php needs to happen in the child Drupal 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
1 call to SystemAuthorizeTest::drupalGetAuthorizePHP()
- SystemAuthorizeTest::testFileTransferHooks in core/
modules/ system/ src/ Tests/ System/ SystemAuthorizeTest.php - Tests the FileTransfer hooks
File
- core/
modules/ system/ src/ Tests/ System/ SystemAuthorizeTest.php, line 44 - Contains \Drupal\system\Tests\System\SystemAuthorizeTest.
Class
- SystemAuthorizeTest
- Tests the authorize.php script and related API.
Namespace
Drupal\system\Tests\SystemCode
function drupalGetAuthorizePHP($page_title = 'system-test-auth') {
$this
->drupalGet('system-test/authorize-init/' . $page_title);
}