You are here

public function PaymentMethodBaseTest::testDoExecutePaymentAccess in Payment 8.2

@covers ::doExecutePaymentAccess

File

tests/src/Unit/Plugin/Payment/Method/PaymentMethodBaseTest.php, line 112

Class

PaymentMethodBaseTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\Method\PaymentMethodBase

Namespace

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

Code

public function testDoExecutePaymentAccess() {
  $method = new \ReflectionMethod($this->sut, 'doExecutePaymentAccess');
  $method
    ->setAccessible(TRUE);
  $account = $this
    ->createMock(AccountInterface::class);
  $access = $method
    ->invoke($this->sut, $account);
  $this
    ->assertInstanceOf(AccessResultInterface::class, $access);
  $this
    ->assertTrue($access
    ->isAllowed());
}