mirror of
https://github.com/flextype/flextype.git
synced 2025-08-06 13:16:45 +02:00
feat(shortcodes): add missed settings
This commit is contained in:
@@ -605,6 +605,8 @@ parsers:
|
||||
registry:
|
||||
enabled: true
|
||||
path: "/src/flextype/core/Parsers/Shortcodes/RegistryShortcode.php"
|
||||
get:
|
||||
enabled: true
|
||||
url:
|
||||
enabled: true
|
||||
path: "/src/flextype/core/Parsers/Shortcodes/UrlShortcode.php"
|
||||
@@ -634,7 +636,7 @@ parsers:
|
||||
calc:
|
||||
enabled: true
|
||||
path: "/src/flextype/core/Parsers/Shortcodes/CalcShortcode.php"
|
||||
|
||||
|
||||
# CORS
|
||||
#
|
||||
# CORS (Cross-origin resource sharing) allows JavaScript web apps to make HTTP requests to other domains.
|
||||
|
2
tests/fixtures/settings/settings.yaml
vendored
2
tests/fixtures/settings/settings.yaml
vendored
@@ -586,6 +586,8 @@ parsers:
|
||||
registry:
|
||||
enabled: true
|
||||
path: "/src/flextype/core/Parsers/Shortcodes/RegistryShortcode.php"
|
||||
get:
|
||||
enabled: true
|
||||
strings:
|
||||
enabled: true
|
||||
path: "/src/flextype/core/Parsers/Shortcodes/StringsShortcode.php"
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
test('[registry] shortcode', function () {
|
||||
test('registry shortcode', function () {
|
||||
expect(strings(parsers()->shortcodes()->parse("(registry get:'flextype.manifest')"))->isJson())->toBeTrue();
|
||||
expect(parsers()->shortcodes()->parse("(registry get:'flextype.manifest.name')"))->toBe('Flextype');
|
||||
expect(parsers()->shortcodes()->parse("(registry get:'flextype.manifest.foo' default:'Default')"))->toBe('Default');
|
||||
|
Reference in New Issue
Block a user