function CurrencyLocaleTest::testId in Currency 8.3
@covers ::id
@depends testGetLocale
File
- tests/
src/ Unit/ Entity/ CurrencyLocaleTest.php, line 90
Class
- CurrencyLocaleTest
- @coversDefaultClass \Drupal\currency\Entity\CurrencyLocale
Namespace
Drupal\Tests\currency\Unit\EntityCode
function testId() {
$language_code = $this
->randomMachineName();
$country_code = $this
->randomMachineName();
$this
->assertSame($this->sut, $this->sut
->setLocale($language_code, $country_code));
$this
->assertSame(strtolower($language_code) . '_' . strtoupper($country_code), $this->sut
->id());
}