You are here

function CountriesAPITestCase::test_countries_api_iso3_get_iso2 in Country codes API 6

Function to test countries_api_iso3_get_iso2() results

File

tests/countries_api.test, line 77
Tests for Countries API

Class

CountriesAPITestCase

Code

function test_countries_api_iso3_get_iso2() {
  $code = COUNTRIES_API_TEST_VALID_ISO3;
  $iso2 = countries_api_iso3_get_iso2($code);
  $this
    ->assertNotEqual($iso2, FALSE, 'Test countries_api_iso3_get_iso2 results.');
}