You are here

function CountriesApiTest::test_countries_api_get_list in Country codes API 5

Function to validate format (and presence of) countries from countries_api_get_list()

File

tests/countries_api.test, line 32

Class

CountriesApiTest

Code

function test_countries_api_get_list() {
  $countries = countries_api_get_list();
  $this
    ->assertTrue(is_array($countries), 'Checking countries api list. %s');
}