From ea37906d0bf5bf450c36ea0c8415e3e32bfc1e02 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 15 Apr 2022 17:22:08 +0300 Subject: [PATCH] feat(tests): update tests [registry] shortcode --- .../flextype/core/Parsers/Shortcodes/RegistryShortcodeTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/src/flextype/core/Parsers/Shortcodes/RegistryShortcodeTest.php b/tests/src/flextype/core/Parsers/Shortcodes/RegistryShortcodeTest.php index da9b2fe4..73c856a9 100644 --- a/tests/src/flextype/core/Parsers/Shortcodes/RegistryShortcodeTest.php +++ b/tests/src/flextype/core/Parsers/Shortcodes/RegistryShortcodeTest.php @@ -7,4 +7,7 @@ test('[registry-get] shortcode', function () { parsers()->shortcodes()->parse('[registry-get name="flextype.manifest.name"]')); $this->assertEquals('default-value', parsers()->shortcodes()->parse('[registry-get name="item-name" default="default-value"]')); + + registry()->set('flextype.settings.parsers.shortcodes.shortcodes.registry.enabled', false); + $this->assertEquals('', parsers()->shortcodes()->parse('[registry-get name="item-name" default="default-value"]')); });