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

fix(tests): fix tests for shortcodes

This commit is contained in:
Awilum
2022-05-25 12:18:10 +03:00
parent 74dd56a1d4
commit 22839c426c

View File

@@ -94,7 +94,7 @@ test('(strings) shortcode', function () {
$this->assertEquals("false", parsers()->shortcodes()->parse("(strings endsWith:'/')/movies/sg-1/season-5/episode-21(/strings)"));
// finish
$this->assertEquals("/movies/sg-1/season-5/episode-21/", parsers()->shortcodes()->parse("(strings finish:"/")/movies/sg-1/season-5/episode-21(/strings)"));
$this->assertEquals("/movies/sg-1/season-5/episode-21/", parsers()->shortcodes()->parse("(strings finish:'/')/movies/sg-1/season-5/episode-21(/strings)"));
// firstSegment
$this->assertEquals("SG-1", parsers()->shortcodes()->parse("(strings firstSegment)SG-1 returns from an off-world mission(/strings)"));