NodeTestBase.php

Same filename in this branch
  1. 11.x core/modules/node/tests/src/Functional/NodeTestBase.php
Same filename in other branches
  1. 9 core/modules/node/tests/src/Functional/Views/NodeTestBase.php
  2. 9 core/modules/node/tests/src/Functional/NodeTestBase.php
  3. 8.9.x core/modules/node/src/Tests/Views/NodeTestBase.php
  4. 8.9.x core/modules/node/src/Tests/NodeTestBase.php
  5. 8.9.x core/modules/node/tests/src/Functional/Views/NodeTestBase.php
  6. 8.9.x core/modules/node/tests/src/Functional/NodeTestBase.php
  7. 10 core/modules/node/tests/src/Functional/Views/NodeTestBase.php
  8. 10 core/modules/node/tests/src/Functional/NodeTestBase.php

Namespace

Drupal\Tests\node\Functional\Views

File

core/modules/node/tests/src/Functional/Views/NodeTestBase.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\node\Functional\Views;

use Drupal\Tests\views\Functional\ViewTestBase;

/**
 * Base class for all node Views tests.
 */
abstract class NodeTestBase extends ViewTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'node_test_views',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp($import_test_views = TRUE, $modules = [
        'node_test_views',
    ]) : void {
        parent::setUp($import_test_views, $modules);
    }

}

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.