function PerformanceTestTrait::shouldUpdate
Same name and namespace in other branches
- main core/tests/Drupal/Tests/PerformanceTestTrait.php \Drupal\Tests\PerformanceTestTrait::shouldUpdate()
Whether the test should run in update mode.
Return value
bool Whether the test should update expectations.
2 calls to PerformanceTestTrait::shouldUpdate()
- PerformanceTestTrait::assertMetricsByName in core/
tests/ Drupal/ Tests/ PerformanceTestTrait.php - Asserts metrics against the stored expectations.
- PerformanceTestTrait::assertQueriesByName in core/
tests/ Drupal/ Tests/ PerformanceTestTrait.php - Asserts queries against the stored expectations.
File
-
core/
tests/ Drupal/ Tests/ PerformanceTestTrait.php, line 821
Class
- PerformanceTestTrait
- Provides various methods to aid in collecting performance data during tests.
Namespace
Drupal\TestsCode
protected function shouldUpdate() : bool {
return (bool) getenv('PERF_TEST_UPDATE');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.