IndexPhpTest.php
Namespace
Drupal\Tests\system\Functional\SystemFile
- 
              core/modules/ system/ tests/ src/ Functional/ System/ IndexPhpTest.php 
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\system\Functional\System;
use Drupal\Tests\BrowserTestBase;
/**
 * Tests the handling of requests containing 'index.php'.
 *
 * @group system
 */
class IndexPhpTest extends BrowserTestBase {
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';
  
  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    parent::setUp();
  }
  
  /**
   * Tests index.php handling.
   */
  public function testIndexPhpHandling() : void {
    $index_php = $GLOBALS['base_url'] . '/index.php';
    $this->drupalGet($index_php, [
      'external' => TRUE,
    ]);
    $this->assertSession()
      ->statusCodeEquals(200);
    $this->drupalGet($index_php . '/user', [
      'external' => TRUE,
    ]);
    $this->assertSession()
      ->statusCodeEquals(200);
  }
}Classes
| Title | Deprecated | Summary | 
|---|---|---|
| IndexPhpTest | Tests the handling of requests containing 'index.php'. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
