You are here

public function SqlContentEntityStorageTest::providerTestGetTableMappingSimple in Zircon Profile 8

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

Provides test data for testGetTableMappingSimple().

Return value

array[] A nested array, where each inner array has a single value being a map of entity keys to use for the mocked entity type.

File

core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php, line 444
Contains \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest.

Class

SqlContentEntityStorageTest
@coversDefaultClass \Drupal\Core\Entity\Sql\SqlContentEntityStorage @group Entity

Namespace

Drupal\Tests\Core\Entity\Sql

Code

public function providerTestGetTableMappingSimple() {
  return array(
    array(
      array(
        'id' => 'test_id',
        'bundle' => NULL,
        'uuid' => NULL,
      ),
    ),
    array(
      array(
        'id' => 'test_id',
        'bundle' => 'test_bundle',
        'uuid' => NULL,
      ),
    ),
    array(
      array(
        'id' => 'test_id',
        'bundle' => NULL,
        'uuid' => 'test_uuid',
      ),
    ),
    array(
      array(
        'id' => 'test_id',
        'bundle' => 'test_bundle',
        'uuid' => 'test_uuid',
      ),
    ),
  );
}