From 4af90a5afb7c4bf1ca15ea47ba8b3cb212a5b5b0 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 15 Apr 2022 17:24:05 +0300 Subject: [PATCH] feat(tests): update tests [entries] shortcode --- .../flextype/core/Parsers/Shortcodes/EntriesShortcodeTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/src/flextype/core/Parsers/Shortcodes/EntriesShortcodeTest.php b/tests/src/flextype/core/Parsers/Shortcodes/EntriesShortcodeTest.php index 64a4b5f9..50cbb520 100644 --- a/tests/src/flextype/core/Parsers/Shortcodes/EntriesShortcodeTest.php +++ b/tests/src/flextype/core/Parsers/Shortcodes/EntriesShortcodeTest.php @@ -14,4 +14,8 @@ test('[entries-fetch] shortcode', function () { $this->assertTrue(entries()->create('foo', ['title' => 'Foo'])); $this->assertEquals('Foo', parsers()->shortcodes()->parse('[entries-fetch id="foo" field="title"]')); $this->assertEquals('Bar', parsers()->shortcodes()->parse('[entries-fetch id="foo" field="bar" default="Bar"]')); + + registry()->set('flextype.settings.parsers.shortcodes.shortcodes.entries.enabled', false); + $this->assertEquals('', parsers()->shortcodes()->parse('[entries-fetch id="foo" field="bar" default="Bar"]')); + });