function SqlContentEntityStorageTest::providerTestGetTableMappingSimple

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest::providerTestGetTableMappingSimple()
  2. 10 core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest::providerTestGetTableMappingSimple()
  3. 11.x 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 528

Class

SqlContentEntityStorageTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Entity%21Sql%21SqlContentEntityStorage.php/class/SqlContentEntityStorage/9" title="A content entity database storage implementation." class="local">\Drupal\Core\Entity\Sql\SqlContentEntityStorage</a> @group Entity

Namespace

Drupal\Tests\Core\Entity\Sql

Code

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

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