aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2017-03-04 09:52:48 +0100
committerVirtualTam <virtualtam@flibidi.net>2017-03-04 09:52:48 +0100
commit8868f3ca461011a8fb6dd9f90b60ed697ab52fc5 (patch)
tree15777aa1005251f119e6dd680291147117766b5b /tests
parent6b7ddb487126fd8f5be22e729ec8e0a2b639891b (diff)
downloadShaarli-0.8.4.tar.gz
Shaarli-0.8.4.tar.zst
Shaarli-0.8.4.zip
UpdaterTest: ensure PHP 5.3 compatibilityv0.8.4
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests')
-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 }