You are here

function CountriesAPITestCase::test_invalid_countries_api_get_name in Country codes API 6

Function to test countries_api_get_name() results with invalid name

File

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

Class

CountriesAPITestCase

Code

function test_invalid_countries_api_get_name() {
  $name = COUNTRIES_API_TEST_INVALID_ISO2;
  $country_name = countries_api_get_name($name);
  $this
    ->assertNull($country_name, 'Test test_countries_api_get_name results.');
}