You are here

public function PaymentMethodConfigurationBaseTest::testGetMessageText in Payment 8.2

@covers ::getMessageText @covers ::setMessageText

File

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

Class

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

Namespace

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

Code

public function testGetMessageText() {
  $message_text = $this
    ->randomMachineName();
  $this
    ->assertSame($this->sut, $this->sut
    ->setMessageText($message_text));
  $this
    ->assertSame($message_text, $this->sut
    ->getMessageText());
}