Making WordPress.org


Ignore:
Timestamp:
05/20/2022 08:13:16 PM (4 years ago)
Author:
iandunn
Message:

Events: Setup disabled test cases to make switching easier

Also correct the order of the assertion params.

File:
1 edited

Legend:

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

    r11862 r11863  
    119119        sort( $actual_countries );
    120120
    121         $this->assertSame( $actual_countries, $expected_countries );
     121        $this->assertSame( $expected_countries, $actual_countries );
    122122    }
    123123
     
    134134
    135135            /*
    136              * This assumes there will always be at least an upcoming event on both sides of the border, so the
     136             * This assumes there will always be at least 1 upcoming event on both sides of the border, so the
    137137             * coordinates need to be half-way between two very active groups in different countries, where the
    138138             * 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 be
    141              * `53.997654, -6.403377` -- between Belfast, GB and Dublin, IE -- or `47.986952, -122.961350` --
    142              * between Seattle, US and Victoria, CA.
    143139             *
    144140             * See https://wordpress.slack.com/archives/C08M59V3P/p1524168308000202.
     
    149145                    'restrict_by_country' => false,
    150146
     147                    // If one of these stops working, comment it out and try another.
    151148                    'nearby' => array(
     149                        // Toronto CA and Buffalo US
    152150                        'latitude'  => '43.254372',
    153151                        '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',
    154160                    ),
    155161                ),
    156                 'expected_countries' => array( 'CA', 'US' ),
     162                'expected_countries' => array(
     163                    'CA', 'US'
     164                    //'GB', 'IE'
     165                ),
    157166            ),
    158167        );
     
    972981
    973982            // 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.
    975984            'usa-city-disambiguation' => array(
    976985                'input' => array(
Note: See TracChangeset for help on using the changeset viewer.