You are here

public function BasicOperationsProviderTest::setUp in Payment 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/Plugin/Payment/Method/BasicOperationsProviderTest.php, line 57

Class

BasicOperationsProviderTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\Method\BasicOperationsProvider

Namespace

Drupal\Tests\payment\Unit\Plugin\Payment\Method

Code

public function setUp() : void {
  $this->paymentMethodConfigurationListBuilder = $this
    ->createMock(EntityListBuilderInterface::class);
  $this->paymentMethodConfigurationStorage = $this
    ->createMock(EntityStorageInterface::class);
  $this->redirectDestination = $this
    ->createMock(RedirectDestinationInterface::class);
  $this->stringTranslation = $this
    ->getStringTranslationStub();
  $this->sut = new BasicOperationsProvider($this->stringTranslation, $this->redirectDestination, $this->paymentMethodConfigurationStorage, $this->paymentMethodConfigurationListBuilder);
}