1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 13:46:42 +02:00

fix(tests): fix tests for shortcodes

This commit is contained in:
Awilum
2022-05-25 12:19:33 +03:00
parent 22839c426c
commit 337c7d860b

View File

@@ -200,7 +200,7 @@ test('(strings) shortcode', function () {
// lastSegment
$this->assertEquals("baz", parsers()->shortcodes()->parse("(strings lastSegment)foo bar baz(/strings)"));
$this->assertEquals("baz", parsers()->shortcodes()->parse("(strings lastSegment:"/")foo/bar/baz(/strings)"));
$this->assertEquals("baz", parsers()->shortcodes()->parse("(strings lastSegment:'/')foo/bar/baz(/strings)"));
// length
$this->assertEquals(11, parsers()->shortcodes()->parse("(strings length)foo bar baz(/strings)"));