You are here

public function BasicTest::providerDoCapturePaymentAccess in Payment 8.2

Provides data to self::testDoCapturePaymentAccess().

File

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

Class

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

Namespace

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

Code

public function providerDoCapturePaymentAccess() {
  $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,
    ),
  );
}