function EntityTypeManagerTest::providerTestGetDefinition

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\EntityTypeManagerTest::providerTestGetDefinition()
  2. 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\EntityTypeManagerTest::providerTestGetDefinition()
  3. 11.x core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\EntityTypeManagerTest::providerTestGetDefinition()

Provides test data for testGetDefinition().

Return value

array Test data.

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php, line 363

Class

EntityTypeManagerTest
@coversDefaultClass \Drupal\Core\Entity\EntityTypeManager[[api-linebreak]] @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public function providerTestGetDefinition() {
  return [
    [
      'apple',
      TRUE,
    ],
    [
      'banana',
      TRUE,
    ],
    [
      'pear',
      FALSE,
    ],
  ];
}

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