From c9c4a9658b777d87cec0043041d9c9e4974ddcff Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 1 Aug 2021 10:45:20 +0300 Subject: [PATCH] feat(tests): fixing tests - next round #199 --- tests/Support/Parsers/ShortcodeTest.php | 2 +- tests/Support/Parsers/Shortcodes/UrlShortcodeTest.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/Support/Parsers/ShortcodeTest.php b/tests/Support/Parsers/ShortcodeTest.php index 30bd8556a..55c8b8370 100644 --- a/tests/Support/Parsers/ShortcodeTest.php +++ b/tests/Support/Parsers/ShortcodeTest.php @@ -8,7 +8,7 @@ use Thunder\Shortcode\Shortcode\ShortcodeInterface; test('test getInstance() method', function () { - $this->assertInstanceOf(Flextype\Support\Parsers\Shortcode::class, parsers()->shortcodes()->getInstance()); + $this->assertInstanceOf(Flextype\Support\Parsers\Shortcodes::class, parsers()->shortcodes()->getInstance()); }); test('test addHandler() method', function () { diff --git a/tests/Support/Parsers/Shortcodes/UrlShortcodeTest.php b/tests/Support/Parsers/Shortcodes/UrlShortcodeTest.php index 15ab1b714..382dbfe08 100644 --- a/tests/Support/Parsers/Shortcodes/UrlShortcodeTest.php +++ b/tests/Support/Parsers/Shortcodes/UrlShortcodeTest.php @@ -3,8 +3,7 @@ declare(strict_types=1); test('test registry_get shortcode', function () { - $this->assertStringContainsString('http', parsers()->shortcodes()->process('[url]')); - registry()->set('flextype.settings.url', 'https://flextype.org'); + $this->assertStringContainsString('https://flextype.org', parsers()->shortcodes()->process('[url]')); });