mirror of
https://github.com/silverstripe/silverstripe-versionfeed
synced 2024-10-22 11:05:31 +02:00
Merge remote-tracking branch 'origin/master' into 1.2
This commit is contained in:
commit
937eb88242
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
class VersionFeedFunctionalTest extends FunctionalTest {
|
||||
protected $usesDatabase = true;
|
||||
|
||||
protected $requiredExtensions = array(
|
||||
'Page' => array('VersionFeed'),
|
||||
@ -17,6 +18,10 @@ class VersionFeedFunctionalTest extends FunctionalTest {
|
||||
$this->userIP = isset($_SERVER['HTTP_CLIENT_IP']) ? $_SERVER['HTTP_CLIENT_IP'] : null;
|
||||
|
||||
Config::nest();
|
||||
// Enable history by default
|
||||
Config::inst()->update('VersionFeed', 'changes_enabled', true);
|
||||
Config::inst()->update('VersionFeed', 'allchanges_enabled', true);
|
||||
|
||||
// Disable caching and locking by default
|
||||
Config::inst()->update('VersionFeed\Filters\CachedContentFilter', 'cache_enabled', false);
|
||||
Config::inst()->update('VersionFeed\Filters\RateLimitFilter', 'lock_timeout', 0);
|
||||
|
Loading…
Reference in New Issue
Block a user