NodeTestBase.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/node/tests/src/Functional/Views/NodeTestBase.php
- 9 core/modules/node/tests/src/Functional/NodeTestBase.php
- 10 core/modules/node/tests/src/Functional/Views/NodeTestBase.php
- 10 core/modules/node/tests/src/Functional/NodeTestBase.php
- 11.x core/modules/node/tests/src/Functional/Views/NodeTestBase.php
- 11.x core/modules/node/tests/src/Functional/NodeTestBase.php
Namespace
Drupal\Tests\node\Functional\ViewsFile
-
core/
modules/ node/ tests/ src/ Functional/ Views/ NodeTestBase.php
View source
<?php
namespace Drupal\Tests\node\Functional\Views;
use Drupal\Tests\views\Functional\ViewTestBase;
use Drupal\views\Tests\ViewTestData;
/**
* Base class for all node Views tests.
*/
abstract class NodeTestBase extends ViewTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
'node_test_views',
];
/**
* {@inheritdoc}
*/
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
if ($import_test_views) {
ViewTestData::createTestViews(get_class($this), [
'node_test_views',
]);
}
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
NodeTestBase | Base class for all node Views tests. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.