public function EntityOperationsTest::provideEntityOperationScenarios in Event 8
Same name in this branch
- 8 modules/gevent/tests/src/Functional/EntityOperationsTest.php \Drupal\Tests\gevent\Functional\EntityOperationsTest::provideEntityOperationScenarios()
- 8 modules/event_group/tests/src/Functional/EntityOperationsTest.php \Drupal\Tests\gnode\Functional\EntityOperationsTest::provideEntityOperationScenarios()
Data provider for testEntityOperations().
Overrides EntityOperationsTest::provideEntityOperationScenarios
File
- modules/
gevent/ tests/ src/ Functional/ EntityOperationsTest.php, line 24
Class
- EntityOperationsTest
- Tests that entity operations (do not) show up on the group overview.
Namespace
Drupal\Tests\gevent\FunctionalCode
public function provideEntityOperationScenarios() {
$scenarios['withoutAccess'] = [
[],
[
'group/1/events' => 'Events',
],
];
$scenarios['withAccess'] = [
[],
[
'group/1/events' => 'Events',
],
[
'access group_event overview',
],
];
$scenarios['withAccessAndViews'] = [
[
'group/1/events' => 'Events',
],
[],
[
'access group_event overview',
],
[
'views',
],
];
return $scenarios;
}