public function EditCurrencyTest::testTitle in Currency 8.3
@covers ::title
File
- tests/
src/ Unit/ Controller/ EditCurrencyTest.php, line 61
Class
- EditCurrencyTest
- @coversDefaultClass \Drupal\currency\Controller\EditCurrency
Namespace
Drupal\Tests\currency\Unit\ControllerCode
public function testTitle() {
$label = $this
->randomMachineName();
$string = 'Edit @label';
$currency = $this
->createMock(CurrencyInterface::class);
$currency
->expects($this
->once())
->method('label')
->willReturn($label);
$this
->assertInstanceOf(TranslatableMarkup::class, $this->sut
->title($currency));
}