Making WordPress.org

Changeset 11624


Ignore:
Timestamp:
03/02/2022 04:00:44 PM (5 years ago)
Author:
iandunn
Message:

Events: Update location test data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index.php

    r10887 r11624  
    508508                        ),
    509509
    510 
    511510                        /*
    512511                         * The country name, locale, and timezone are given
     
    12191218                                'input' => array( 'ip' => '86.108.55.28' ),
    12201219                                'expected' => array(
    1221                                         'description' => 'aqaba',
    1222                                         'latitude'    => '29.527',
    1223                                         'longitude'   => '35.008',
     1220                                        'description' => 'zarqa',
     1221                                        'latitude'    => '32.073',
     1222                                        'longitude'   => '36.088',
    12241223                                        'country'     => 'JO',
    12251224                                        'internal'    => true,
     
    13171316                                'input'    => array( 'ip' => '2a02:578:1000::' ),
    13181317                                'expected' => array(
    1319                                         'description' => 'sint-niklaas',
    1320                                         'latitude'    => '51.165',
    1321                                         'longitude'   => '4.144',
     1318                                        'description' => 'brussels',
     1319                                        'latitude'    => '50.850',
     1320                                        'longitude'   => '4.349',
    13221321                                        'country'     => 'BE',
    13231322                                        'internal'    => true,
     
    13391338                                'input'    => array( 'ip' => '::ffff:0190:c500' ),
    13401339                                'expected' => array(
    1341                                         'description' => 'perth',
    1342                                         'latitude'    => '-31.952',
    1343                                         'longitude'   => '115.861',
     1340                                        'description' => 'sydney',
     1341                                        'latitude'    => '-33.868',
     1342                                        'longitude'   => '151.207',
    13441343                                        'country'     => 'AU',
    13451344                                        'internal'    => true,
     
    14581457
    14591458                // 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 17, 2020' ) );
    1461                 $actual_events_after_expiration  = pin_one_off_events( $seed_events, strtotime( 'December 18, 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' ) );
    14621461
    14631462                $this->assertIsArray( $actual_events_after_expiration );
Note: See TracChangeset for help on using the changeset viewer.