1<?php
2
3namespace Drupal\BuildTests\Framework\Tests;
4
5use Drupal\BuildTests\QuickStart\QuickStartTestBase;
6
7/**
8 * @coversDefaultClass \Drupal\BuildTests\Framework\BuildTestBase
9 * @group Build
10 */
11class HtRouterTest extends QuickStartTestBase {
12
13  /**
14   * @covers ::instantiateServer
15   */
16  public function testHtRouter() {
17    $this->copyCodebase();
18    $this->executeCommand('COMPOSER_DISCARD_CHANGES=true composer install --no-dev --no-interaction');
19    $this->assertErrorOutputContains('Generating autoload files');
20    $this->installQuickStart('minimal');
21    $this->formLogin($this->adminUsername, $this->adminPassword);
22    $this->visit('/.well-known/change-password');
23    $this->assertDrupalVisit();
24    $url = $this->getMink()->getSession()->getCurrentUrl();
25    $this->assertEquals('http://localhost:' . $this->getPortNumber() . '/user/1/edit', $url);
26  }
27
28}
29