You are here

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;

/**
 * Tests that entity operations (do not) show up on the group overview.
 *
 * @see gnode_entity_operation()
 *
 * @group gnode
 */
class EntityOperationsTest extends GroupEntityOperationsTest {

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'gnode',
  ];

  /**
   * {@inheritdoc}
   */
  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;
  }

}

Classes

Namesort descending Description
EntityOperationsTest Tests that entity operations (do not) show up on the group overview.