You are here

public function PaymentMethodConfigurationBaseTest::testGetMessageTextFormat in Payment 8.2

@covers ::getMessageTextFormat @covers ::setMessageTextFormat

File

tests/src/Unit/Plugin/Payment/MethodConfiguration/PaymentMethodConfigurationBaseTest.php, line 94

Class

PaymentMethodConfigurationBaseTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationBase

Namespace

Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfiguration

Code

public function testGetMessageTextFormat() {
  $message_text_format = $this
    ->randomMachineName();
  $this
    ->assertSame($this->sut, $this->sut
    ->setMessageTextFormat($message_text_format));
  $this
    ->assertSame($message_text_format, $this->sut
    ->getMessageTextFormat());
}