- Timestamp:
- 05/20/2022 08:13:16 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/tests/test-index.php
r11862 r11863 119 119 sort( $actual_countries ); 120 120 121 $this->assertSame( $ actual_countries, $expected_countries );121 $this->assertSame( $expected_countries, $actual_countries ); 122 122 } 123 123 … … 134 134 135 135 /* 136 * This assumes there will always be at least anupcoming event on both sides of the border, so the136 * This assumes there will always be at least 1 upcoming event on both sides of the border, so the 137 137 * coordinates need to be half-way between two very active groups in different countries, where the 138 138 * mid-point is less than `$event_distances['meetup']`. 139 *140 * If Toronto, CA and Buffalo, US no longer work in the future, then another possible location would be141 * `53.997654, -6.403377` -- between Belfast, GB and Dublin, IE -- or `47.986952, -122.961350` --142 * between Seattle, US and Victoria, CA.143 139 * 144 140 * See https://wordpress.slack.com/archives/C08M59V3P/p1524168308000202. … … 149 145 'restrict_by_country' => false, 150 146 147 // If one of these stops working, comment it out and try another. 151 148 'nearby' => array( 149 // Toronto CA and Buffalo US 152 150 'latitude' => '43.254372', 153 151 'longitude' => '-79.063746', 152 153 // Belfast GB and Dublin IE 154 //'latitude' => '53.997654', 155 //'longitude' => '-6.403377', 156 157 // Seattle US and Victoria CA 158 //'latitude' => '47.986952', 159 //'longitude' => '-122.961350', 154 160 ), 155 161 ), 156 'expected_countries' => array( 'CA', 'US' ), 162 'expected_countries' => array( 163 'CA', 'US' 164 //'GB', 'IE' 165 ), 157 166 ), 158 167 ); … … 972 981 973 982 // https://meta.trac.wordpress.org/ticket/3367 974 // The following tests ensure that West/East portlands return correctly with inversed timezones.983 // The following tests ensure that the West/East Portlands return correctly with inversed timezones. 975 984 'usa-city-disambiguation' => array( 976 985 'input' => array(
Note: See TracChangeset
for help on using the changeset viewer.