You are here

public function EditPaymentTest::testTitle in Payment 8.2

@covers ::title

File

tests/src/Unit/Controller/EditPaymentTest.php, line 59

Class

EditPaymentTest
@coversDefaultClass \Drupal\payment\Controller\EditPayment

Namespace

Drupal\Tests\payment\Unit\Controller

Code

public function testTitle() {
  $payment = $this
    ->createMock(PaymentInterface::class);
  $payment
    ->expects($this
    ->atLeastOnce())
    ->method('id');
  $this
    ->assertInstanceOf(TranslatableMarkup::class, $this->sut
    ->title($payment));
}