You are here

public function PaymentMethodConfigurationAccessControlHandlerTest::providerTestCheckAccessDuplicate in Payment 8.2

Provides data to self::testCheckAccessDuplicate().

File

tests/src/Unit/Entity/PaymentMethodConfiguration/PaymentMethodConfigurationAccessControlHandlerTest.php, line 296

Class

PaymentMethodConfigurationAccessControlHandlerTest
@coversDefaultClass \Drupal\payment\Entity\PaymentMethodConfiguration\PaymentMethodConfigurationAccessControlHandler

Namespace

Drupal\Tests\payment\Unit\Entity\PaymentMethodConfiguration

Code

public function providerTestCheckAccessDuplicate() {
  return [
    // No create access.
    [
      FALSE,
      FALSE,
      TRUE,
    ],
    // Create access, with view permission.
    [
      TRUE,
      TRUE,
      TRUE,
    ],
    // Create access, without view permission.
    [
      FALSE,
      TRUE,
      FALSE,
    ],
    // No access.
    [
      FALSE,
      FALSE,
      FALSE,
    ],
  ];
}