You are here

public function BasicTest::providerDoRefundPaymentAccess in Payment 8.2

Provides data to self::testDoRefundPaymentAccess().

File

tests/src/Unit/Plugin/Payment/Method/BasicTest.php, line 287

Class

BasicTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\Method\Basic

Namespace

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

Code

public function providerDoRefundPaymentAccess() {
  $status_id_a = $this
    ->randomMachineName();
  $status_id_b = $this
    ->randomMachineName();
  $status_id_c = $this
    ->randomMachineName();
  return array(
    array(
      TRUE,
      TRUE,
      $status_id_a,
      $status_id_b,
    ),
    array(
      TRUE,
      TRUE,
      $status_id_a,
      $status_id_c,
    ),
    array(
      FALSE,
      FALSE,
      $status_id_a,
      $status_id_b,
    ),
  );
}