You are here

protected function ListPaymentStatusesTest::setUp in Payment 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/Controller/ListPaymentStatusesTest.php, line 50

Class

ListPaymentStatusesTest
@coversDefaultClass \Drupal\payment\Controller\ListPaymentStatuses

Namespace

Drupal\Tests\payment\Unit\Controller

Code

protected function setUp() : void {
  $this->paymentStatusManager = $this
    ->createMock(PaymentStatusManagerInterface::class);
  $this->renderer = $this
    ->createMock(RendererInterface::class);
  $this->stringTranslation = $this
    ->getStringTranslationStub();
  $this->sut = new ListPaymentStatuses($this->stringTranslation, $this->renderer, $this->paymentStatusManager);
}