You are here

function CountriesAPITestCase::test_results_countries_api_get_country in Country codes API 6

Function to test _countries_api_get_country returns a value

File

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

Class

CountriesAPITestCase

Code

function test_results_countries_api_get_country() {
  $value = COUNTRIES_API_TEST_VALID_ISO2;
  $format = COUNTRIES_API_TEST_VALID_FORMAT;
  $country = _countries_api_get_country($value, $format);
  $this
    ->assertTrue($country, 'Testing countries_api_iso_get_country return format.');
}