Skip to content
Snippets Groups Projects
Commit 06c218fe authored by Marco Villegas's avatar Marco Villegas
Browse files

Add a cool cache case for vocabulary admin performance test

parent a357447a
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ protected function setUp(): void {
public function testPerformance(): void {
$this->testColdCache();
$this->testHotCache();
$this->testCoolCache();
}
/**
......@@ -83,6 +84,25 @@ protected function testHotCache(): void {
$this->assertSame(72, $performance_data->getCacheTagIsValidCount());
}
/**
* Logs vocabulary admin page tracing data with a cool cache.
*
* Cool here means that 'global' site caches are warm but anything
* specific to the route or path is cold.
*/
protected function testCoolCache(): void {
// Visit a page without the recipe_category loaded.
$this->drupalGet('user/login');
$this->clearCaches();
// Now visit it post cache rebuild to warm non-route-specific
// caches.
$this->drupalGet('user/login');
$this->collectPerformanceData(function () {
$this->drupalGet('admin/structure/taxonomy/manage/tags/overview');
}, 'umamiVocabularyAdminPageCoolCache');
$this->assertTermInVocabularyAdminPage();
}
/**
* Helper to find a known term in the list post page request.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment