mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Fixed failing book view test
Also ensured setting system localcache is cleared correctly
This commit is contained in:
@ -98,6 +98,9 @@ class SettingService
|
|||||||
{
|
{
|
||||||
$cacheKey = $this->cachePrefix . $key;
|
$cacheKey = $this->cachePrefix . $key;
|
||||||
$this->cache->forget($cacheKey);
|
$this->cache->forget($cacheKey);
|
||||||
|
if (isset($this->localCache[$key])) {
|
||||||
|
unset($this->localCache[$key]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -90,14 +90,14 @@ class EntityTest extends BrowserKitTest
|
|||||||
$this->actingAs($editor)
|
$this->actingAs($editor)
|
||||||
->visit('/books')
|
->visit('/books')
|
||||||
->pageHasElement('.featured-image-container')
|
->pageHasElement('.featured-image-container')
|
||||||
->submitForm('Toggle Book View')
|
->submitForm('List View')
|
||||||
// Check redirection.
|
// Check redirection.
|
||||||
->seePageIs('/books')
|
->seePageIs('/books')
|
||||||
->pageNotHasElement('.featured-image-container');
|
->pageNotHasElement('.featured-image-container');
|
||||||
|
|
||||||
$this->actingAs($editor)
|
$this->actingAs($editor)
|
||||||
->visit('/books')
|
->visit('/books')
|
||||||
->submitForm('Toggle Book View')
|
->submitForm('Grid View')
|
||||||
->seePageIs('/books')
|
->seePageIs('/books')
|
||||||
->pageHasElement('.featured-image-container');
|
->pageHasElement('.featured-image-container');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user