File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public static function lang(array $params = []): string
8585 *
8686 * @param array{field?: string} $params
8787 */
88- public static function ValidationErrors (array $ params = []): string
88+ public static function validationErrors (array $ params = []): string
8989 {
9090 $ validator = service ('validation ' );
9191 if ($ params === []) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments