You are here

public function EntityOperationsTest::provideEntityOperationScenarios in Event 8

Same name in this branch
  1. 8 modules/gevent/tests/src/Functional/EntityOperationsTest.php \Drupal\Tests\gevent\Functional\EntityOperationsTest::provideEntityOperationScenarios()
  2. 8 modules/event_group/tests/src/Functional/EntityOperationsTest.php \Drupal\Tests\gnode\Functional\EntityOperationsTest::provideEntityOperationScenarios()

Data provider for testEntityOperations().

Overrides EntityOperationsTest::provideEntityOperationScenarios

File

modules/event_group/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;
}