aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Updater/UpdaterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Updater/UpdaterTest.php')
-rw-r--r--tests/Updater/UpdaterTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php
index 17d1ba81..a3e8a4d2 100644
--- a/tests/Updater/UpdaterTest.php
+++ b/tests/Updater/UpdaterTest.php
@@ -396,8 +396,8 @@ $GLOBALS[\'privateLinkByDefault\'] = true;';
396 copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); 396 copy(self::$configFile . '.json.php', $sandboxConf . '.json.php');
397 $this->conf = new ConfigManager($sandboxConf); 397 $this->conf = new ConfigManager($sandboxConf);
398 398
399 $this->conf->set('general.enabled_plugins', ['markdown']); 399 $this->conf->set('general.enabled_plugins', array('markdown'));
400 $updater = new Updater([], [], $this->conf, true); 400 $updater = new Updater(array(), array(), $this->conf, true);
401 $this->assertTrue($updater->updateMethodEscapeMarkdown()); 401 $this->assertTrue($updater->updateMethodEscapeMarkdown());
402 $this->assertFalse($this->conf->get('security.markdown_escape')); 402 $this->assertFalse($this->conf->get('security.markdown_escape'));
403 403
@@ -416,8 +416,8 @@ $GLOBALS[\'privateLinkByDefault\'] = true;';
416 copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); 416 copy(self::$configFile . '.json.php', $sandboxConf . '.json.php');
417 $this->conf = new ConfigManager($sandboxConf); 417 $this->conf = new ConfigManager($sandboxConf);
418 418
419 $this->conf->set('general.enabled_plugins', []); 419 $this->conf->set('general.enabled_plugins', array());
420 $updater = new Updater([], [], $this->conf, true); 420 $updater = new Updater(array(), array(), $this->conf, true);
421 $this->assertTrue($updater->updateMethodEscapeMarkdown()); 421 $this->assertTrue($updater->updateMethodEscapeMarkdown());
422 $this->assertTrue($this->conf->get('security.markdown_escape')); 422 $this->assertTrue($this->conf->get('security.markdown_escape'));
423 423
@@ -435,7 +435,7 @@ $GLOBALS[\'privateLinkByDefault\'] = true;';
435 copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); 435 copy(self::$configFile . '.json.php', $sandboxConf . '.json.php');
436 $this->conf = new ConfigManager($sandboxConf); 436 $this->conf = new ConfigManager($sandboxConf);
437 $this->conf->set('security.markdown_escape', true); 437 $this->conf->set('security.markdown_escape', true);
438 $updater = new Updater([], [], $this->conf, true); 438 $updater = new Updater(array(), array(), $this->conf, true);
439 $this->assertTrue($updater->updateMethodEscapeMarkdown()); 439 $this->assertTrue($updater->updateMethodEscapeMarkdown());
440 $this->assertTrue($this->conf->get('security.markdown_escape')); 440 $this->assertTrue($this->conf->get('security.markdown_escape'));
441 } 441 }
@@ -446,7 +446,7 @@ $GLOBALS[\'privateLinkByDefault\'] = true;';
446 public function testEscapeMarkdownSettingNothingToDoDisabled() 446 public function testEscapeMarkdownSettingNothingToDoDisabled()
447 { 447 {
448 $this->conf->set('security.markdown_escape', false); 448 $this->conf->set('security.markdown_escape', false);
449 $updater = new Updater([], [], $this->conf, true); 449 $updater = new Updater(array(), array(), $this->conf, true);
450 $this->assertTrue($updater->updateMethodEscapeMarkdown()); 450 $this->assertTrue($updater->updateMethodEscapeMarkdown());
451 $this->assertFalse($this->conf->get('security.markdown_escape')); 451 $this->assertFalse($this->conf->get('security.markdown_escape'));
452 } 452 }