Skip to content

Commit 7f86e00

Browse files
committed
test: add test cases
1 parent 349507d commit 7f86e00

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/system/View/ParserPluginTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ public function testLang(): void
9393
$template = '{+ lang Number.terabyteAbbr +}';
9494

9595
$this->assertSame('TB', $this->parser->renderString($template));
96+
97+
$template = '{+ lang Time.years 2024 +}';
98+
99+
$this->assertSame('2,024 years', $this->parser->renderString($template));
96100
}
97101

98102
public function testValidationErrors(): void
@@ -122,6 +126,10 @@ public function testSiteURL(): void
122126
$template = '{+ siteURL +}';
123127

124128
$this->assertSame('http://example.com/index.php', $this->parser->renderString($template));
129+
130+
$template = '{+ siteURL login +}';
131+
132+
$this->assertSame('http://example.com/index.php/login', $this->parser->renderString($template));
125133
}
126134

127135
public function testValidationErrorsList(): void

0 commit comments

Comments
 (0)