Also ensured setting system localcache is cleared correctly
{
$cacheKey = $this->cachePrefix . $key;
$this->cache->forget($cacheKey);
+ if (isset($this->localCache[$key])) {
+ unset($this->localCache[$key]);
+ }
}
/**
$this->actingAs($editor)
->visit('/books')
->pageHasElement('.featured-image-container')
- ->submitForm('Toggle Book View')
+ ->submitForm('List View')
// Check redirection.
->seePageIs('/books')
->pageNotHasElement('.featured-image-container');
$this->actingAs($editor)
->visit('/books')
- ->submitForm('Toggle Book View')
+ ->submitForm('Grid View')
->seePageIs('/books')
->pageHasElement('.featured-image-container');