You are here

public function PaymentMethodBaseTest::providerTestExecutePaymentAccessEvent in Payment 8.2

Provides data to self::testExecutePaymentAccessEvent().

File

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

Class

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

Namespace

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

Code

public function providerTestExecutePaymentAccessEvent() {
  return [
    // Access allowed.
    [
      TRUE,
      new AccessResultAllowed(),
    ],
    // Access forbidden.
    [
      FALSE,
      new AccessResultForbidden(),
    ],
    // Access neutral.
    [
      FALSE,
      new AccessResultNeutral(),
    ],
  ];
}