function EntityTypeBundleInfoTest::providerTestGetBundleInfo

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

Provides test data for testGetBundleInfo().

Return value

array Test data.

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php, line 192

Class

EntityTypeBundleInfoTest
@coversDefaultClass \Drupal\Core\Entity\EntityTypeBundleInfo[[api-linebreak]] @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public static function providerTestGetBundleInfo() {
  return [
    [
      'apple',
      [
        'apple' => [
          'label' => 'Apple',
        ],
      ],
    ],
    [
      'banana',
      [
        'banana' => [
          'label' => 'Banana',
        ],
      ],
    ],
    [
      'pear',
      [],
    ],
  ];
}

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