File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,42 @@ public function forcePublishAndGet(): void
153
153
$ this ->assertSame (UpdateOrigin::REST_API , (string ) $ version ?->updateOrigin());
154
154
}
155
155
156
+ #[Test]
157
+ public function getTemplateWithVersion (): void
158
+ {
159
+ $ template = $ this ->remoteConfig ->get ();
160
+ $ version = $ template ->version ();
161
+ assert ($ version !== null );
162
+
163
+ $ check = $ this ->remoteConfig ->get ($ version );
164
+
165
+ $ this ->assertTrue ($ version ->versionNumber ()->equalsTo ($ check ->version ()?->versionNumber()));
166
+ }
167
+
168
+ #[Test]
169
+ public function getTemplateWithVersionNumber (): void
170
+ {
171
+ $ template = $ this ->remoteConfig ->get ();
172
+ $ version = $ template ->version ();
173
+ assert ($ version !== null );
174
+
175
+ $ check = $ this ->remoteConfig ->get ($ version ->versionNumber ());
176
+
177
+ $ this ->assertTrue ($ version ->versionNumber ()->equalsTo ($ check ->version ()?->versionNumber()));
178
+ }
179
+
180
+ #[Test]
181
+ public function getTemplateWithVersionNumberString (): void
182
+ {
183
+ $ template = $ this ->remoteConfig ->get ();
184
+ $ version = $ template ->version ();
185
+ assert ($ version !== null );
186
+
187
+ $ check = $ this ->remoteConfig ->get ((string ) $ version ->versionNumber ());
188
+
189
+ $ this ->assertTrue ($ version ->versionNumber ()->equalsTo ($ check ->version ()?->versionNumber()));
190
+ }
191
+
156
192
#[Test]
157
193
public function publishOutdatedConfig (): void
158
194
{
You can’t perform that action at this time.
0 commit comments