diff --git a/tests/unit/e_parseTest.php b/tests/unit/e_parseTest.php index 3ab864f9c..a74b89368 100644 --- a/tests/unit/e_parseTest.php +++ b/tests/unit/e_parseTest.php @@ -105,10 +105,15 @@ TMP; $db = $this->tp->toDB($orig); + e107::wysiwyg('default'); + e107::getConfig()->updatePref('wysiwyg', true); $actual = $this->tp->toForm($db); + $expected = 'lr.src = window._lr.url %2B '/Scripts/api.js';'; + $this->assertEquals($expected, $actual); + e107::getConfig()->updatePref('wysiwyg', false); + $actual = $this->tp->toForm($db); $expected = 'lr.src = window._lr.url + '/Scripts/api.js';'; - $this->assertEquals($expected, $actual); }