You are here

public function InstallerPerformanceTest::testInstaller in Drupal 9

Same name and namespace in other branches
  1. 10 core/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php \Drupal\FunctionalTests\Installer\InstallerPerformanceTest::testInstaller()

Ensures that the user page is available after installation.

File

core/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php, line 37

Class

InstallerPerformanceTest
Tests the interactive installer.

Namespace

Drupal\FunctionalTests\Installer

Code

public function testInstaller() {

  // Ensures that router is not rebuilt unnecessarily during the install.
  // Currently it is built once during the install in install_finished().
  $this
    ->assertSame(1, \Drupal::service('core.performance.test.recorder')
    ->getCount('event', RoutingEvents::FINISHED));
}