Skip to content
Snippets Groups Projects

Issue #3504566: Add PerformanceTestTrait::clearCaches() so it is easier to use...

3 files
+ 10
20
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -4,7 +4,6 @@
namespace Drupal\Tests\demo_umami\FunctionalJavascript;
use Drupal\Core\Cache\Cache;
use Drupal\FunctionalJavascriptTests\PerformanceTestBase;
/**
@@ -133,13 +132,4 @@ protected function testFrontPageCoolCache(): void {
$this->assertMetrics($expected, $performance_data);
}
/**
* Clear caches.
*/
protected function clearCaches(): void {
foreach (Cache::getBins() as $bin) {
$bin->deleteAll();
}
}
}
Loading