class InstallerPerformanceTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php \Drupal\FunctionalTests\Installer\InstallerPerformanceTest
- 10 core/tests/Drupal/FunctionalTests/Installer/InstallerPerformanceTest.php \Drupal\FunctionalTests\Installer\InstallerPerformanceTest
Tests the interactive installer.
@group Installer
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, \Drupal\Tests\ExtensionListTestTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\FunctionalTests\Installer\InstallerPerformanceTest extends \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of InstallerPerformanceTest
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ InstallerPerformanceTest.php, line 14
Namespace
Drupal\FunctionalTests\InstallerView source
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));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.