You are here

public function ViewsTest::providerTestGetApplicableViews in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 198
Contains \Drupal\Tests\views\Unit\ViewsTest.

Class

ViewsTest
@coversDefaultClass \Drupal\views\Views @group views

Namespace

Drupal\Tests\views\Unit

Code

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