You are here

function CountriesApiTest::test_nullcountries_api_iso2_get_name in Country codes API 5

Function to test results of countries_api_iso2_get_name()

File

tests/countries_api.test, line 113

Class

CountriesApiTest

Code

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