You are here

public function EntityOperationsTest::provideEntityOperationScenarios in Group 2.0.x

Same name in this branch
  1. 2.0.x tests/src/Functional/EntityOperationsTest.php \Drupal\Tests\group\Functional\EntityOperationsTest::provideEntityOperationScenarios()
  2. 2.0.x modules/gnode/tests/src/Functional/EntityOperationsTest.php \Drupal\Tests\gnode\Functional\EntityOperationsTest::provideEntityOperationScenarios()
Same name and namespace in other branches
  1. 8 modules/gnode/tests/src/Functional/EntityOperationsTest.php \Drupal\Tests\gnode\Functional\EntityOperationsTest::provideEntityOperationScenarios()

Data provider for testEntityOperations().

Overrides EntityOperationsTest::provideEntityOperationScenarios

File

modules/gnode/tests/src/Functional/EntityOperationsTest.php, line 24

Class

EntityOperationsTest
Tests that entity operations (do not) show up on the group overview.

Namespace

Drupal\Tests\gnode\Functional

Code

public function provideEntityOperationScenarios() {
  $scenarios['withoutAccess'] = [
    [],
    [
      'group/1/nodes' => 'Nodes',
    ],
  ];
  $scenarios['withAccess'] = [
    [],
    [
      'group/1/nodes' => 'Nodes',
    ],
    [
      'access group_node overview',
    ],
  ];
  $scenarios['withAccessAndViews'] = [
    [
      'group/1/nodes' => 'Nodes',
    ],
    [],
    [
      'access group_node overview',
    ],
    [
      'views',
    ],
  ];
  return $scenarios;
}