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