You are here

function CountriesAPITestCase::test_invalidformat_countries_api_get_country in Country codes API 6

Function to test invalid format passed to _countries_api_get_country

File

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

Class

CountriesAPITestCase

Code

function test_invalidformat_countries_api_get_country() {
  $value = COUNTRIES_API_TEST_VALID_ISO2;
  $format = COUNTRIES_API_TEST_INVALID_FORMAT;
  $country = _countries_api_get_country($value, $format);
  $this
    ->assertFalse($country, 'Testing countries_api_iso_get_country format validation.');
}