You are here

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;

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

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

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

}

Classes

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