You are here

protected function SelectPaymentMethodConfigurationTest::setUp in Payment 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/Controller/SelectPaymentMethodConfigurationTest.php, line 52

Class

SelectPaymentMethodConfigurationTest
@coversDefaultClass \Drupal\payment\Controller\SelectPaymentMethodConfiguration

Namespace

Drupal\Tests\payment\Unit\Controller

Code

protected function setUp() : void {
  $this->currentUser = $this
    ->createMock(AccountInterface::class);
  $this->paymentMethodConfigurationAccessControlHandler = $this
    ->createMock(EntityAccessControlHandlerInterface::class);
  $this->paymentMethodConfigurationManager = $this
    ->createMock(PaymentMethodConfigurationManagerInterface::class);
  $this->sut = new SelectPaymentMethodConfiguration($this->paymentMethodConfigurationAccessControlHandler, $this->paymentMethodConfigurationManager, $this->currentUser);
}