EntityOperationsTest.php in Event 8
File
modules/gevent/tests/src/Functional/EntityOperationsTest.php
View source
<?php
namespace Drupal\Tests\gevent\Functional;
use Drupal\Tests\group\Functional\EntityOperationsTest as GroupEntityOperationsTest;
class EntityOperationsTest extends GroupEntityOperationsTest {
public static $modules = [
'gevent',
];
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;
}
}