You are here

function IndexPhpTest::testIndexPhpHandling in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/System/IndexPhpTest.php \Drupal\system\Tests\System\IndexPhpTest::testIndexPhpHandling()

Test index.php handling.

File

core/modules/system/src/Tests/System/IndexPhpTest.php, line 25
Contains \Drupal\system\Tests\System\IndexPhpTest.

Class

IndexPhpTest
Tests the handling of requests containing 'index.php'.

Namespace

Drupal\system\Tests\System

Code

function testIndexPhpHandling() {
  $index_php = $GLOBALS['base_url'] . '/index.php';
  $this
    ->drupalGet($index_php, array(
    'external' => TRUE,
  ));
  $this
    ->assertResponse(200, 'Make sure index.php returns a valid page.');
  $this
    ->drupalGet($index_php . '/user', array(
    'external' => TRUE,
  ));
  $this
    ->assertResponse(200, 'Make sure index.php/user returns a valid page.');
}