You are here

public function EditCurrencyLocaleTest::testTitle in Currency 8.3

@covers ::title

File

tests/src/Unit/Controller/EditCurrencyLocaleTest.php, line 61

Class

EditCurrencyLocaleTest
@coversDefaultClass \Drupal\currency\Controller\EditCurrencyLocale

Namespace

Drupal\Tests\currency\Unit\Controller

Code

public function testTitle() {
  $label = $this
    ->randomMachineName();
  $currency_locale = $this
    ->createMock(CurrencyLocaleInterface::class);
  $currency_locale
    ->expects($this
    ->once())
    ->method('label')
    ->willReturn($label);
  $this
    ->assertInstanceOf(TranslatableMarkup::class, $this->sut
    ->title($currency_locale));
}