FIX Update test to handle versioned stage cache segmentation in SS 3.7

Fixes #58
This commit is contained in:
Robbie Averill 2019-07-26 10:50:20 +02:00
parent 04be1ecb34
commit 2da1fc60fa

View File

@ -70,6 +70,7 @@ class VersionFeedFunctionalTest extends FunctionalTest {
$page1 = $this->createPageWithChanges(array('PublicHistory' => true, 'Title' => 'Page1')); $page1 = $this->createPageWithChanges(array('PublicHistory' => true, 'Title' => 'Page1'));
$page2 = $this->createPageWithChanges(array('PublicHistory' => true, 'Title' => 'Page2')); $page2 = $this->createPageWithChanges(array('PublicHistory' => true, 'Title' => 'Page2'));
Versioned::set_reading_mode(Versioned::DEFAULT_MODE);
// Artifically set cache lock // Artifically set cache lock
Config::inst()->update('VersionFeed\Filters\RateLimitFilter', 'lock_byuserip', false); Config::inst()->update('VersionFeed\Filters\RateLimitFilter', 'lock_byuserip', false);
$cache = SS_Cache::factory('VersionFeed_Controller'); $cache = SS_Cache::factory('VersionFeed_Controller');