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\ControllerCode
protected function setUp() : void {
$this->paymentMethodManager = $this
->createMock(PaymentMethodManagerInterface::class);
$this->stringTranslation = $this
->getStringTranslationStub();
$this->sut = new ListPaymentMethods($this->stringTranslation, $this->paymentMethodManager);
}