Updated Drupal to 8.6. This goes with the following updates because it's possible...
[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
14   protected function setUp() {
15     parent::setUp();
16   }
17
18   /**
19    * Test index.php handling.
20    */
21   public function testIndexPhpHandling() {
22     $index_php = $GLOBALS['base_url'] . '/index.php';
23
24     $this->drupalGet($index_php, ['external' => TRUE]);
25     $this->assertResponse(200, 'Make sure index.php returns a valid page.');
26
27     $this->drupalGet($index_php . '/user', ['external' => TRUE]);
28     $this->assertResponse(200, 'Make sure index.php/user returns a valid page.');
29   }
30
31 }