You are here

public function EntityTypeBundleInfoTest::providerTestGetBundleInfo in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 199
Contains \Drupal\Tests\Core\Entity\EntityTypeBundleInfoTest.

Class

EntityTypeBundleInfoTest
@coversDefaultClass \Drupal\Core\Entity\EntityTypeBundleInfo @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

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