You are here

public function ValidatorTest::testCountryList in Telephone Validation 8.2

Tests get country list.

::covers getCountryList.

@dataProvider dataCountryList

File

tests/src/Unit/ValidatorTest.php, line 54

Class

ValidatorTest
@coversDefaultClass Drupal\telephone_validation\Validator @group Telephone

Namespace

Drupal\Tests\telephone_validation\Unit

Code

public function testCountryList($countryCode, $label) {
  $validator = new Validator($this->countryManager);
  $list = $validator
    ->getCountryList();
  self::assertEquals($label, $list[$countryCode]);
}