function IndexPhpTest::testIndexPhpHandling
Tests index.php handling.
File
-
core/
modules/ system/ tests/ src/ Functional/ System/ IndexPhpTest.php, line 29
Class
- IndexPhpTest
- Tests the handling of requests containing 'index.php'.
Namespace
Drupal\Tests\system\Functional\SystemCode
public function testIndexPhpHandling() {
$index_php = $GLOBALS['base_url'] . '/index.php';
$this->drupalGet($index_php, [
'external' => TRUE,
]);
$this->assertSession()
->statusCodeEquals(200);
$this->drupalGet($index_php . '/user', [
'external' => TRUE,
]);
$this->assertSession()
->statusCodeEquals(200);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.