Skip to content

Commit 317129f

Browse files
author
Benjamin Pick
committed
Add test for shortcode geoip_detect2_text_input
1 parent 97efcbe commit 317129f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test-shortcode.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ public function testShortcodeTextInput() {
197197

198198
$html = do_shortcode('[geoip_detect2_text_input name="yourcity" property="country" lang="fr" id="thisismyid" class="myclassname" default="Paris" required="true"]');
199199
$this->assertContains('value="Allemagne"', $html);
200+
201+
$html = do_shortcode('[geoip_detect2_text_input name="postal" property="location.timeZone" type="hidden"]');
202+
$this->assertContains('name="postal"', $html);
203+
$this->assertContains('type="hidden"', $html);
204+
$this->assertContains('value="Europe/Berlin"', $html);
200205
}
201206

202207
/**

0 commit comments

Comments
 (0)