You are here

protected function ListPaymentMethodsTest::setUp in Payment 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/Controller/ListPaymentMethodsTest.php, line 42

Class

ListPaymentMethodsTest
@coversDefaultClass \Drupal\payment\Controller\ListPaymentMethods

Namespace

Drupal\Tests\payment\Unit\Controller

Code

protected function setUp() : void {
  $this->paymentMethodManager = $this
    ->createMock(PaymentMethodManagerInterface::class);
  $this->stringTranslation = $this
    ->getStringTranslationStub();
  $this->sut = new ListPaymentMethods($this->stringTranslation, $this->paymentMethodManager);
}