Making WordPress.org


Ignore:
Timestamp:
04/17/2017 09:06:59 PM (8 years ago)
Author:
iandunn
Message:

Events: Add country names to descriptions

There are situations where it's helpful to give clients both the country name and country code, because they may have only passed one of them.

See https://github.com/coreymckrill/nearby-wordpress-events/issues/35

File:
1 edited

Legend:

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

    r5311 r5355  
    124124            ),
    125125            'expected' => array(
    126                 'country' => 'AU'
     126                'country' => 'AU',
    127127            ),
    128128        ),
     
    139139            ),
    140140            'expected' => array(
    141                 'country' => 'ID'
     141                'country' => 'ID',
     142                'description' => 'indonesia',
    142143            ),
    143144        ),
     
    487488            'expected' => array(
    488489                'country' => 'CA',
     490                'description' => 'canada',
    489491            ),
    490492        ),
     
    498500            'expected' => array(
    499501                'country' => 'DO',
     502                'description' => 'dominican republic',
    500503            ),
    501504        ),
     
    509512            'expected' => array(
    510513                'country' => 'CF',
     514                'description' => 'central african republic',
    511515            ),
    512516        ),
     
    520524            'expected' => array(
    521525                'country' => 'GB',
     526                'description' => 'united kingdom',
    522527            ),
    523528        ),
     
    531536            'expected' => array(
    532537                'country' => 'BI',
     538                'description' => 'burundi',
    533539            ),
    534540        ),
Note: See TracChangeset for help on using the changeset viewer.