function ViewsDataTest::providerTestGetEmptyKey

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

File

core/modules/views/tests/src/Unit/ViewsDataTest.php, line 651

Class

ViewsDataTest
@coversDefaultClass \Drupal\views\ViewsData[[api-linebreak]] @group views

Namespace

Drupal\Tests\views\Unit

Code

public static function providerTestGetEmptyKey() {
  return [
    [
      NULL,
    ],
    [
      '',
    ],
    [
      0,
    ],
  ];
}

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