You are here

RngBrowserTestBase.php in RNG - Events and Registrations 3.x

File

tests/src/Functional/RngBrowserTestBase.php
View source
<?php

namespace Drupal\Tests\rng\Functional;

use Drupal\Tests\BrowserTestBase;
use Drupal\rng\Tests\RngTestTrait;

/**
 * Base test class for functional browser tests.
 */
abstract class RngBrowserTestBase extends BrowserTestBase {
  use RngTestTrait;

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'rng',
    'user',
    'field',
    'dynamic_entity_reference',
    'unlimited_number',
    'courier',
    'text',
  ];

  /**
   * The RNG event manager.
   *
   * @var \Drupal\rng\EventManagerInterface
   */
  protected $eventManager;

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this->eventManager = $this->container
      ->get('rng.event_manager');
  }

}

Classes

Namesort descending Description
RngBrowserTestBase Base test class for functional browser tests.