You are here

public function PermissionsTest::setUp in Payment 8.2

Overrides UnitTestCase::setUp

File

tests/src/Unit/PermissionsTest.php, line 41

Class

PermissionsTest
@coversDefaultClass \Drupal\payment\Permissions

Namespace

Drupal\Tests\payment\Unit

Code

public function setUp() : void {
  $this->paymentMethodConfigurationManager = $this
    ->createMock(PaymentMethodManagerInterface::class);
  $this->stringTranslation = $this
    ->getStringTranslationStub();
  $this->sut = new Permissions($this->stringTranslation, $this->paymentMethodConfigurationManager);
}