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 {
13 protected function setUp() {
18 * Test index.php handling.
20 public function testIndexPhpHandling() {
21 $index_php = $GLOBALS['base_url'] . '/index.php';
23 $this->drupalGet($index_php, ['external' => TRUE]);
24 $this->assertResponse(200, 'Make sure index.php returns a valid page.');
26 $this->drupalGet($index_php . '/user', ['external' => TRUE]);
27 $this->assertResponse(200, 'Make sure index.php/user returns a valid page.');