public function EntityOperationsTest::provideEntityOperationScenarios in Group 2.0.x
Same name in this branch
- 2.0.x tests/src/Functional/EntityOperationsTest.php \Drupal\Tests\group\Functional\EntityOperationsTest::provideEntityOperationScenarios()
- 2.0.x modules/gnode/tests/src/Functional/EntityOperationsTest.php \Drupal\Tests\gnode\Functional\EntityOperationsTest::provideEntityOperationScenarios()
Same name and namespace in other branches
- 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\FunctionalCode
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;
}