function SelectExtenderTest::providerExtend

Same name in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Database/SelectExtenderTest.php \Drupal\KernelTests\Core\Database\SelectExtenderTest::providerExtend()
  2. 11.x core/tests/Drupal/KernelTests/Core/Database/SelectExtenderTest.php \Drupal\KernelTests\Core\Database\SelectExtenderTest::providerExtend()

Data provider for testExtend().

Return value

array Array of arrays with the following elements:

  • Expected namespaced class name.
  • The database driver namespace.
  • The namespaced class name for which to extend.

File

core/tests/Drupal/KernelTests/Core/Database/SelectExtenderTest.php, line 28

Class

SelectExtenderTest
Tests the Select query extender classes.

Namespace

Drupal\KernelTests\Core\Database

Code

public function providerExtend() : array {
    return [
        [
            'Drupal\\Core\\Database\\Query\\PagerSelectExtender',
            'Drupal\\corefake\\Driver\\Database\\corefake',
            'Drupal\\Core\\Database\\Query\\PagerSelectExtender',
        ],
        [
            'Drupal\\Core\\Database\\Query\\PagerSelectExtender',
            'Drupal\\corefake\\Driver\\Database\\corefake',
            '\\Drupal\\Core\\Database\\Query\\PagerSelectExtender',
        ],
        [
            'Drupal\\Core\\Database\\Query\\TableSortExtender',
            'Drupal\\corefake\\Driver\\Database\\corefake',
            'Drupal\\Core\\Database\\Query\\TableSortExtender',
        ],
        [
            'Drupal\\Core\\Database\\Query\\TableSortExtender',
            'Drupal\\corefake\\Driver\\Database\\corefake',
            '\\Drupal\\Core\\Database\\Query\\TableSortExtender',
        ],
        [
            'Drupal\\search\\SearchQuery',
            'Drupal\\corefake\\Driver\\Database\\corefake',
            'Drupal\\search\\SearchQuery',
        ],
        [
            'Drupal\\search\\SearchQuery',
            'Drupal\\corefake\\Driver\\Database\\corefake',
            '\\Drupal\\search\\SearchQuery',
        ],
        [
            'Drupal\\search\\ViewsSearchQuery',
            'Drupal\\corefake\\Driver\\Database\\corefake',
            'Drupal\\search\\ViewsSearchQuery',
        ],
        [
            'Drupal\\search\\ViewsSearchQuery',
            'Drupal\\corefake\\Driver\\Database\\corefake',
            '\\Drupal\\search\\ViewsSearchQuery',
        ],
        [
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses\\PagerSelectExtender',
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses',
            'Drupal\\Core\\Database\\Query\\PagerSelectExtender',
        ],
        [
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses\\PagerSelectExtender',
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses',
            '\\Drupal\\Core\\Database\\Query\\PagerSelectExtender',
        ],
        [
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses\\TableSortExtender',
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses',
            'Drupal\\Core\\Database\\Query\\TableSortExtender',
        ],
        [
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses\\TableSortExtender',
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses',
            '\\Drupal\\Core\\Database\\Query\\TableSortExtender',
        ],
        [
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses\\SearchQuery',
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses',
            'Drupal\\search\\SearchQuery',
        ],
        [
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses\\SearchQuery',
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses',
            '\\Drupal\\search\\SearchQuery',
        ],
        [
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses\\ViewsSearchQuery',
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses',
            'Drupal\\search\\ViewsSearchQuery',
        ],
        [
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses\\ViewsSearchQuery',
            'Drupal\\corefake\\Driver\\Database\\corefakeWithAllCustomClasses',
            '\\Drupal\\search\\ViewsSearchQuery',
        ],
    ];
}

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