mirror of
https://github.com/silverstripe/silverstripe-versionfeed
synced 2024-10-22 11:05:31 +02:00
Fix testcase
This commit is contained in:
parent
d718bf8758
commit
797e5586c5
@ -183,7 +183,6 @@ class VersionFeedFunctionalTest extends FunctionalTest {
|
|||||||
* Tests response code for globally disabled feedss
|
* Tests response code for globally disabled feedss
|
||||||
*/
|
*/
|
||||||
public function testFeedViewability() {
|
public function testFeedViewability() {
|
||||||
$siteConfig = SiteConfig::current_site_config();
|
|
||||||
|
|
||||||
// Nested loop through each configuration
|
// Nested loop through each configuration
|
||||||
foreach(array(true, false) as $publicHistory_Page) {
|
foreach(array(true, false) as $publicHistory_Page) {
|
||||||
@ -201,6 +200,7 @@ class VersionFeedFunctionalTest extends FunctionalTest {
|
|||||||
foreach(array(true, false) as $allChanges_Config) {
|
foreach(array(true, false) as $allChanges_Config) {
|
||||||
foreach(array(true, false) as $allChanges_SiteConfig) {
|
foreach(array(true, false) as $allChanges_SiteConfig) {
|
||||||
Config::inst()->update('VersionFeed', 'allchanges_enabled', $allChanges_Config);
|
Config::inst()->update('VersionFeed', 'allchanges_enabled', $allChanges_Config);
|
||||||
|
$siteConfig = SiteConfig::current_site_config();
|
||||||
$siteConfig->AllChangesEnabled = $allChanges_SiteConfig;
|
$siteConfig->AllChangesEnabled = $allChanges_SiteConfig;
|
||||||
$siteConfig->write();
|
$siteConfig->write();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user