function ViewsTest::providerTestGetApplicableViews

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Unit/ViewsTest.php \Drupal\Tests\views\Unit\ViewsTest::providerTestGetApplicableViews()
  2. 8.9.x core/modules/views/tests/src/Unit/ViewsTest.php \Drupal\Tests\views\Unit\ViewsTest::providerTestGetApplicableViews()
  3. 11.x core/modules/views/tests/src/Unit/ViewsTest.php \Drupal\Tests\views\Unit\ViewsTest::providerTestGetApplicableViews()

Data provider for testGetApplicableViews.

Return value

array

File

core/modules/views/tests/src/Unit/ViewsTest.php, line 215

Class

ViewsTest
@coversDefaultClass \Drupal\views\Views[[api-linebreak]] @group views

Namespace

Drupal\Tests\views\Unit

Code

public static function providerTestGetApplicableViews() {
  return [
    [
      'type_a',
      [
        [
          'test_view_1',
          'type_a',
        ],
      ],
    ],
    [
      'type_b',
      [
        [
          'test_view_2',
          'type_b',
        ],
      ],
    ],
    [
      'type_c',
      [],
    ],
  ];
}

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