public function CleanerTest::testCleanerClearCache in Cleaner 8
Test Cleaner clearing caches.
File
- src/
Tests/ CleanerTest.php, line 57
Class
- CleanerTest
- Class CleanerTest.
Namespace
Drupal\cleaner\TestsCode
public function testCleanerClearCache() {
$this
->setConfig('cleaner_clear_cache', 1);
$cid = 'cleaner_test_cache';
\Drupal::cache()
->set($cid, $this
->randomString());
self::cleanerExecute();
$this
->assertFalse(\Drupal::cache()
->get($cid), 'Dummy cache has been cleared');
}