function SqlContentEntityStorageTest::providerCardinality

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Entity/Sql/SqlContentEntityStorageTest.php \Drupal\KernelTests\Core\Entity\Sql\SqlContentEntityStorageTest::providerCardinality()

Data provider for testEntityWithManyFieldsLoad().

Return value

array Test cases.

File

core/tests/Drupal/KernelTests/Core/Entity/Sql/SqlContentEntityStorageTest.php, line 173

Class

SqlContentEntityStorageTest
Tests that the deleteFromDedicatedTables() method only executes one DELETE query.

Namespace

Drupal\KernelTests\Core\Entity\Sql

Code

public static function providerCardinality() : array {
  return [
    'single cardinality' => [
      1,
    ],
    'unlimited cardinality' => [
      -1,
    ],
  ];
}

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