class HtRouterTest

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/BuildTests/Framework/Tests/HtRouterTest.php \Drupal\BuildTests\Framework\Tests\HtRouterTest
  2. 10 core/tests/Drupal/BuildTests/Framework/Tests/HtRouterTest.php \Drupal\BuildTests\Framework\Tests\HtRouterTest
  3. 9 core/tests/Drupal/BuildTests/Framework/Tests/HtRouterTest.php \Drupal\BuildTests\Framework\Tests\HtRouterTest

@coversDefaultClass \Drupal\BuildTests\Framework\BuildTestBase
@group Build

Hierarchy

Expanded class hierarchy of HtRouterTest

File

core/tests/Drupal/BuildTests/Framework/Tests/HtRouterTest.php, line 11

Namespace

Drupal\BuildTests\Framework\Tests
View source
class HtRouterTest extends QuickStartTestBase {
  
  /**
   * @covers ::instantiateServer
   */
  public function testHtRouter() {
    $this->copyCodebase();
    $this->executeCommand('COMPOSER_DISCARD_CHANGES=true composer install --no-dev --no-interaction');
    $this->assertErrorOutputContains('Generating autoload files');
    $this->installQuickStart('minimal');
    $this->formLogin($this->adminUsername, $this->adminPassword);
    $this->visit('/.well-known/change-password');
    $this->assertDrupalVisit();
    $url = $this->getMink()
      ->getSession()
      ->getCurrentUrl();
    $this->assertEquals('http://localhost:' . $this->getPortNumber() . '/user/1/edit', $url);
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.