Making WordPress.org


Ignore:
Timestamp:
03/29/2020 01:54:50 AM (7 years ago)
Author:
dd32
Message:

Events API: Tests: Update tests after r9640, the expected results are now slightly different (but still valid).

Some IPs have also changed locations.

See #5117.

File:
1 edited

Legend:

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

    r9108 r9641  
    193193                        ),
    194194                        'expected' => array(
    195                                 'description' => 'naíróbí',
     195                                'description' => 'nairobi',
    196196                                'latitude'    => '-1.283',
    197197                                'longitude'   => '36.817',
    … …  
    207207                        ),
    208208                        'expected' => array(
    209                                 'description' => 'tōkyō',
     209                                'description' => 'tokyo',
    210210                                'latitude'    => '35.690',
    211211                                'longitude'   => '139.692',
    … …  
    221221                        ),
    222222                        'expected' => array(
    223                                 'description' => 'berlín',
     223                                'description' => 'berlin',
    224224                                'latitude'    => '52.524',
    225225                                'longitude'   => '13.411',
    … …  
    351351                        ),
    352352                        'expected' => array(
    353                                 'description' => "doña ana",
     353                                'description' => "dona ana",
    354354                                'latitude'    => '32.390',
    355355                                'longitude'   => '-106.814',
    … …  
    570570                        ),
    571571                        'expected' => array(
    572                                 'description' => 'ciudad de mexico',
     572                                'description' => 'ciudad de méxico',
    573573                                'latitude'    => '19.428',
    574574                                'longitude'   => '-99.128',
    … …  
    598598                        ),
    599599                        'expected' => array(
    600                                 'description' => 'bogota',
     600                                'description' => 'bogotá',
    601601                                'latitude'    => '4.610',
    602602                                'longitude'   => '-74.082',
    … …  
    753753                        'input' => array( 'ip' => '86.108.55.28' ),
    754754                        'expected' => array(
    755                                 'description' => 'hakama',
    756                                 'latitude'    => '32.594',
    757                                 'longitude'   => '35.884',
     755                                'description' => 'amman',
     756                                'latitude'    => '31.955',
     757                                'longitude'   => '35.945',
    758758                                'country'     => 'JO',
    759759                                'internal'    => true,
    … …  
    862862                        'input'    => array( 'ip' => '::ffff:0190:c500' ),
    863863                        'expected' => array(
    864                                 'description' => 'sydney',
    865                                 'latitude'    => '-33.868',
    866                                 'longitude'   => '151.207',
     864                                'description' => 'perth',
     865                                'latitude'    => '-31.952',
     866                                'longitude'   => '115.861',
    867867                                'country'     => 'AU',
    868868                                'internal'    => true,
Note: See TracChangeset for help on using the changeset viewer.