Skip to content

Commit

Permalink
test: add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 12, 2024
1 parent 349507d commit 7f86e00
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/system/View/ParserPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ public function testLang(): void
$template = '{+ lang Number.terabyteAbbr +}';

$this->assertSame('TB', $this->parser->renderString($template));

$template = '{+ lang Time.years 2024 +}';

$this->assertSame('2,024 years', $this->parser->renderString($template));
}

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

$this->assertSame('http://example.com/index.php', $this->parser->renderString($template));

$template = '{+ siteURL login +}';

$this->assertSame('http://example.com/index.php/login', $this->parser->renderString($template));
}

public function testValidationErrorsList(): void
Expand Down

0 comments on commit 7f86e00

Please sign in to comment.