Making WordPress.org


Ignore:
Timestamp:
01/06/2021 01:25:06 AM (6 years ago)
Author:
iandunn
Message:

Events: Add failing tests to show exact-match bug.

See #5562.

File:
1 edited

Legend:

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

    r10551 r10553  
    683683                        ),
    684684
     685                        'usa-city-altname-disambiguation-by-population' => array(
     686                                'input' => array(
     687                                        'location_name' => 'Chicago',
     688                                        'locale'        => 'en_US',
     689                                        'timezone'      => 'America/Chicago',
     690                                ),
     691                                'expected' => array(
     692                                        'description' => 'chicago',
     693                                        'latitude'    => '41.850',
     694                                        'longitude'   => '-87.650',
     695                                        'country'     => 'US',
     696                                ),
     697                        ),
     698                        'usa-city-altname-disambiguation-by-population-2' => array(
     699                                'input' => array(
     700                                        'location_name' => 'Chicago',
     701                                        'locale'        => 'en_US',
     702                                        'timezone'      => 'America/Los_Angeles',
     703                                ),
     704                                'expected' => array(
     705                                        'description' => 'chicago',
     706                                        'latitude'    => '41.850',
     707                                        'longitude'   => '-87.650',
     708                                        'country'     => 'US',
     709                                ),
     710                        ),
     711
    685712                        /*
    686713                         * A combination of city, region, and country are given, along with the locale and timezone
Note: See TracChangeset for help on using the changeset viewer.