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;
abstract class MultiversionTestBase extends ViewTestBase {
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',
]);
}
}
}