From 5881d08f6a927b2c53140df213be52d129a88880 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 10 Aug 2023 23:51:50 +0900 Subject: [PATCH] Fix unit tests failing if nofollow attribute is turned on --- tests/unit/framework/FormatterTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit/framework/FormatterTest.php b/tests/unit/framework/FormatterTest.php index bed7674ca..b2146eea7 100644 --- a/tests/unit/framework/FormatterTest.php +++ b/tests/unit/framework/FormatterTest.php @@ -2,6 +2,11 @@ class FormatterTest extends \Codeception\TestCase\Test { + public function _before() + { + config('security.nofollow', false); + } + public function testText2HTML() { $text = file_get_contents(\RX_BASEDIR . 'tests/_data/formatter/text2html.source.txt');