Version 1
[yaffs-website] / web / core / modules / system / tests / src / Functional / System / IndexPhpTest.php
1 <?php
2
3 namespace Drupal\Tests\system\Functional\System;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * Tests the handling of requests containing 'index.php'.
9  *
10  * @group system
11  */
12 class IndexPhpTest extends BrowserTestBase {
13   protected function setUp() {
14     parent::setUp();
15   }
16
17   /**
18    * Test index.php handling.
19    */
20   public function testIndexPhpHandling() {
21     $index_php = $GLOBALS['base_url'] . '/index.php';
22
23     $this->drupalGet($index_php, ['external' => TRUE]);
24     $this->assertResponse(200, 'Make sure index.php returns a valid page.');
25
26     $this->drupalGet($index_php . '/user', ['external' => TRUE]);
27     $this->assertResponse(200, 'Make sure index.php/user returns a valid page.');
28   }
29
30 }