
| Current Path : /var/www/html/store/web/core/tests/Drupal/FunctionalTests/Installer/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/web/core/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php |
<?php
namespace Drupal\FunctionalTests\Installer;
use Drupal\Core\Routing\RoutingEvents;
use Drupal\Core\Test\PerformanceTestRecorder;
use Drupal\Tests\BrowserTestBase;
/**
* Tests the interactive installer.
*
* @group Installer
*/
class InstallerPerformanceTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*/
protected $profile = 'testing';
/**
* {@inheritdoc}
*/
protected function prepareSettings() {
parent::prepareSettings();
PerformanceTestRecorder::registerService($this->siteDirectory . '/services.yml', FALSE);
}
/**
* Ensures that the user page is available after installation.
*/
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));
}
}