You are here

public function PaymentStatusDeleteFormTest::setUp in Payment 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/Entity/PaymentStatus/PaymentStatusDeleteFormTest.php, line 60

Class

PaymentStatusDeleteFormTest
@coversDefaultClass \Drupal\payment\Entity\PaymentStatus\PaymentStatusDeleteForm

Namespace

Drupal\Tests\payment\Unit\Entity\PaymentStatus

Code

public function setUp() : void {
  $this->logger = $this
    ->createMock(LoggerInterface::class);
  $this->paymentStatus = $this
    ->createMock(PaymentStatusInterface::class);
  $this->stringTranslation = $this
    ->getStringTranslationStub();
  $this->messenger = $this
    ->createMock(MessengerInterface::class);
  $this->sut = new PaymentStatusDeleteForm($this->stringTranslation, $this->logger);
  $this->sut
    ->setEntity($this->paymentStatus);
  $this->sut
    ->setMessenger($this->messenger);
}