You are here

MultiversionTestBase.php in Multiversion 8

File

tests/src/Functional/Views/MultiversionTestBase.php
View source
<?php

namespace Drupal\Tests\multiversion\Functional\Views;

use Drupal\Tests\views\Functional\ViewTestBase;
use Drupal\views\Tests\ViewTestData;

/**
 * Base class for all multiversion views tests.
 */
abstract class MultiversionTestBase extends ViewTestBase {

  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = [
    'multiversion_test_views',
  ];
  protected function setUp($import_test_views = TRUE) {
    parent::setUp($import_test_views);
    if ($import_test_views) {
      ViewTestData::createTestViews(get_class($this), [
        'multiversion_test_views',
      ]);
    }
  }

}

Classes

Namesort descending Description
MultiversionTestBase Base class for all multiversion views tests.