File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,10 @@ public function testLang(): void
93
93
$ template = '{+ lang Number.terabyteAbbr +} ' ;
94
94
95
95
$ 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 ));
96
100
}
97
101
98
102
public function testValidationErrors (): void
@@ -122,6 +126,10 @@ public function testSiteURL(): void
122
126
$ template = '{+ siteURL +} ' ;
123
127
124
128
$ 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 ));
125
133
}
126
134
127
135
public function testValidationErrorsList (): void
You can’t perform that action at this time.
0 commit comments