You are here

public function EntityTypeTest::providerTestGetKeys in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php \Drupal\Tests\Core\Entity\EntityTypeTest::providerTestGetKeys()

Provides test data.

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php, line 124
Contains \Drupal\Tests\Core\Entity\EntityTypeTest.

Class

EntityTypeTest
@coversDefaultClass \Drupal\Core\Entity\EntityType @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public function providerTestGetKeys() {
  return array(
    array(
      array(),
      array(
        'revision' => '',
        'bundle' => '',
        'langcode' => '',
      ),
    ),
    array(
      array(
        'id' => 'id',
      ),
      array(
        'id' => 'id',
        'revision' => '',
        'bundle' => '',
        'langcode' => '',
      ),
    ),
    array(
      array(
        'bundle' => 'bundle',
      ),
      array(
        'bundle' => 'bundle',
        'revision' => '',
        'langcode' => '',
      ),
    ),
  );
}