Changeset 11624
- Timestamp:
- 03/02/2022 04:00:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index.php
r10887 r11624 508 508 ), 509 509 510 511 510 /* 512 511 * The country name, locale, and timezone are given … … 1219 1218 'input' => array( 'ip' => '86.108.55.28' ), 1220 1219 'expected' => array( 1221 'description' => ' aqaba',1222 'latitude' => ' 29.527',1223 'longitude' => '3 5.008',1220 'description' => 'zarqa', 1221 'latitude' => '32.073', 1222 'longitude' => '36.088', 1224 1223 'country' => 'JO', 1225 1224 'internal' => true, … … 1317 1316 'input' => array( 'ip' => '2a02:578:1000::' ), 1318 1317 'expected' => array( 1319 'description' => ' sint-niklaas',1320 'latitude' => '5 1.165',1321 'longitude' => '4. 144',1318 'description' => 'brussels', 1319 'latitude' => '50.850', 1320 'longitude' => '4.349', 1322 1321 'country' => 'BE', 1323 1322 'internal' => true, … … 1339 1338 'input' => array( 'ip' => '::ffff:0190:c500' ), 1340 1339 'expected' => array( 1341 'description' => ' perth',1342 'latitude' => '-3 1.952',1343 'longitude' => '1 15.861',1340 'description' => 'sydney', 1341 'latitude' => '-33.868', 1342 'longitude' => '151.207', 1344 1343 'country' => 'AU', 1345 1344 'internal' => true, … … 1458 1457 1459 1458 // Don't forget to update the values here when they're updated in the FUT. 1460 $actual_events_before_expiration = pin_one_off_events( $seed_events, strtotime( 'December 1 7, 2020' ) );1461 $actual_events_after_expiration = pin_one_off_events( $seed_events, strtotime( 'December 1 8, 2020' ) );1459 $actual_events_before_expiration = pin_one_off_events( $seed_events, strtotime( 'December 16, 2021' ) ); 1460 $actual_events_after_expiration = pin_one_off_events( $seed_events, strtotime( 'December 17, 2021' ) ); 1462 1461 1463 1462 $this->assertIsArray( $actual_events_after_expiration );
Note: See TracChangeset
for help on using the changeset viewer.