function ViewTestBase::dataSet

Same name and namespace in other branches
  1. 8.9.x core/modules/views/src/Tests/ViewTestBase.php \Drupal\views\Tests\ViewTestBase::dataSet()
  2. 8.9.x core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::dataSet()
  3. 10 core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::dataSet()
  4. 11.x core/modules/views/tests/src/Functional/ViewTestBase.php \Drupal\Tests\views\Functional\ViewTestBase::dataSet()

Returns a very simple test dataset.

5 calls to ViewTestBase::dataSet()
CustomBooleanTest::dataSet in core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php
Returns a very simple test dataset.
FieldTimeIntervalTest::dataSet in core/modules/views/tests/src/Functional/Handler/FieldTimeIntervalTest.php
Overrides \Drupal\views\Tests\ViewUnitTestBase::dataSet().
StyleTableTest::testNumericFieldVisible in core/modules/views/tests/src/Functional/Plugin/StyleTableTest.php
Tests that a number with the value of "0" is displayed in the table.
ViewsThemeIntegrationTest::testThemedViewPage in core/modules/views/tests/src/Functional/ViewsThemeIntegrationTest.php
Tests pre_render and post_render hooks in a theme and sub-theme.
ViewTestBase::enableViewsTestModule in core/modules/views/tests/src/Functional/ViewTestBase.php
Sets up the views_test_data.module.
2 methods override ViewTestBase::dataSet()
CustomBooleanTest::dataSet in core/modules/views_ui/tests/src/Functional/CustomBooleanTest.php
Returns a very simple test dataset.
FieldTimeIntervalTest::dataSet in core/modules/views/tests/src/Functional/Handler/FieldTimeIntervalTest.php
Overrides \Drupal\views\Tests\ViewUnitTestBase::dataSet().

File

core/modules/views/tests/src/Functional/ViewTestBase.php, line 157

Class

ViewTestBase
Defines a base class for Views testing in the full web test environment.

Namespace

Drupal\Tests\views\Functional

Code

protected function dataSet() {
    return ViewTestData::dataSet();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.