You are here

public function NodeOptionPremiumHelperTest::accessPermissionsProvider in Node Option Premium 8

Data provider for ::testHasFullAccessWithPermissions().

Return value

array A list of cases.

File

tests/src/Unit/NodeOptionPremiumHelperTest.php, line 143

Class

NodeOptionPremiumHelperTest
@coversDefaultClass \Drupal\nopremium\NodeOptionPremiumHelper

Namespace

Drupal\Tests\nopremium\Unit

Code

public function accessPermissionsProvider() {
  return [
    [
      FALSE,
      'access content',
    ],
    [
      TRUE,
      'administer nodes',
    ],
    [
      TRUE,
      'view full premium content of any type',
    ],
    [
      TRUE,
      'view full foo premium content',
    ],
    [
      FALSE,
      'view full bar premium content',
    ],
  ];
}