- Timestamp:
- 03/07/2017 01:28:40 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index.php
r5100 r5101 427 427 /* 428 428 * A combination of city, region, and country are given, along with the locale and timezone 429 * 430 * InvalidCity is used in tests that want to bypass the guess_location_from_city() tests and only test the country 429 431 */ 430 432 '1-word-city-region' => array( … … 456 458 ), 457 459 460 'city-1-word-country' => array( 461 'input' => array( 462 'location_name' => 'InvalidCity Canada', 463 'locale' => 'en_CA', 464 'timezone' => 'America/Vancouver', 465 ), 466 'expected' => array( 467 'country' => 'CA', 468 ), 469 ), 470 471 'city-2-word-country' => array( 472 'input' => array( 473 'location_name' => 'InvalidCity Dominican Republic', 474 'locale' => 'es_ES', 475 'timezone' => 'America/Santo_Domingo', 476 ), 477 'expected' => array( 478 'country' => 'DO', 479 ), 480 ), 481 482 'city-3-word-country' => array( 483 'input' => array( 484 'location_name' => 'InvalidCity Central African Republic', 485 'locale' => 'fr_FR', 486 'timezone' => 'Africa/Bangui', 487 ), 488 'expected' => array( 489 'country' => 'CF', 490 ), 491 ), 492 493 'country-code' => array( 494 'input' => array( 495 'location_name' => 'GB', 496 'locale' => 'en_GB', 497 'timezone' => 'Europe/London', 498 ), 499 'expected' => array( 500 'country' => 'GB', 501 ), 502 ), 503 504 'city-country-code' => array( 505 'input' => array( 506 'location_name' => 'InvalidCity BI', 507 'locale' => 'fr_FR', 508 'timezone' => 'Africa/Bujumbura', 509 ), 510 'expected' => array( 511 'country' => 'BI', 512 ), 513 ), 514 458 515 459 516 /*
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)