ResolveCountryCodeTest.php in Currency 8.3
File
tests/src/Unit/Event/ResolveCountryCodeTest.php
View source
<?php
namespace Drupal\Tests\currency\Unit\Event;
use Drupal\currency\Event\ResolveCountryCode;
use Drupal\Tests\UnitTestCase;
class ResolveCountryCodeTest extends UnitTestCase {
protected $sut;
public function setUp() : void {
$this->sut = new ResolveCountryCode();
}
public function testGetCountryCode() {
$country_code = $this
->randomMachineName();
$this
->assertSame($this->sut, $this->sut
->setCountryCode($country_code));
$this
->assertSame($country_code, $this->sut
->getCountryCode());
}
}