3 namespace Drupal\Tests\system\Functional\System;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests the handling of requests containing 'index.php'.
12 class IndexPhpTest extends BrowserTestBase {
14 protected function setUp() {
19 * Test index.php handling.
21 public function testIndexPhpHandling() {
22 $index_php = $GLOBALS['base_url'] . '/index.php';
24 $this->drupalGet($index_php, ['external' => TRUE]);
25 $this->assertResponse(200, 'Make sure index.php returns a valid page.');
27 $this->drupalGet($index_php . '/user', ['external' => TRUE]);
28 $this->assertResponse(200, 'Make sure index.php/user returns a valid page.');