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

fix(tests): fix tests for shortcodes

This commit is contained in:
Awilum
2022-05-25 12:24:40 +03:00
parent 337c7d860b
commit a37c99ca36

View File

@@ -300,10 +300,10 @@ test('(strings) shortcode', function () {
$this->assertEquals("foo_bar", parsers()->shortcodes()->parse("(strings snake)fooBar(/strings)"));
// start
$this->assertEquals("/movies/sg-1/season-5/episode-21/", parsers()->shortcodes()->parse("(strings start:"/")movies/sg-1/season-5/episode-21/(/strings)"));
$this->assertEquals("/movies/sg-1/season-5/episode-21/", parsers()->shortcodes()->parse("(strings start:'/')movies/sg-1/season-5/episode-21/(/strings)"));
// startsWith
$this->assertEquals("true", parsers()->shortcodes()->parse("(strings startsWith:"/")/foo/(/strings)"));
$this->assertEquals("true", parsers()->shortcodes()->parse("(strings startsWith:'/')/foo/(/strings)"));
// stripQuotes
$this->assertEquals("some text here", parsers()->shortcodes()->parse('(strings stripQuotes)some "text" here(/strings)'));