You are here

public function EditPaymentMethodConfigurationTest::testTitle in Payment 8.2

@covers ::title

File

tests/src/Unit/Controller/EditPaymentMethodConfigurationTest.php, line 63

Class

EditPaymentMethodConfigurationTest
@coversDefaultClass \Drupal\payment\Controller\EditPaymentMethodConfiguration

Namespace

Drupal\Tests\payment\Unit\Controller

Code

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