1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 05:07:41 +02:00

feat(tests): update tests [entries] shortcode

This commit is contained in:
Awilum
2022-04-15 17:24:05 +03:00
parent ea37906d0b
commit 4af90a5afb

View File

@@ -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"]'));
});