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:
@@ -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)"));
|
||||
|
Reference in New Issue
Block a user