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\ControllerCode
public function testTitle() {
$payment = $this
->createMock(PaymentInterface::class);
$payment
->expects($this
->atLeastOnce())
->method('id');
$this
->assertInstanceOf(TranslatableMarkup::class, $this->sut
->title($payment));
}