You are here

function CountriesAPITestCase::test_nullcountries_api_iso2_get_name in Country codes API 6

Function to test results of countries_api_iso2_get_name()

File

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

Class

CountriesAPITestCase

Code

function test_nullcountries_api_iso2_get_name() {
  $code = COUNTRIES_API_TEST_INVALID_ISO3;
  $country_name = countries_api_iso2_get_name($code);
  $this
    ->assertNull($country_name, 'Tests countries_api_iso2_get_name with an incorrect code.');
}