function EntityCacheTagsTestBase::generateStandardizedInfo

Same name in other branches
  1. 8.9.x core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php \Drupal\system\Tests\Entity\EntityCacheTagsTestBase::generateStandardizedInfo()
  2. 8.9.x core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::generateStandardizedInfo()

Generates standardized entity cache tags test info.

Parameters

string $entity_type_label: The label of the entity type whose cache tags to test.

string $group: The test group.

Return value

array

See also

\Drupal\simpletest\TestBase::getInfo()

File

core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php, line 112

Class

EntityCacheTagsTestBase
Provides helper methods for Entity cache tags tests.

Namespace

Drupal\Tests\system\Functional\Entity

Code

protected static function generateStandardizedInfo($entity_type_label, $group) {
    return [
        'name' => "{$entity_type_label} entity cache tags",
        'description' => "Test the {$entity_type_label} entity's cache tags.",
        'group' => $group,
    ];
}

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