function EntityCacheTagsTestBase::generateStandardizedInfo

Same name in this branch
  1. 8.9.x core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::generateStandardizedInfo()
Same name and namespace in other branches
  1. 9 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/src/Tests/Entity/EntityCacheTagsTestBase.php, line 119

Class

EntityCacheTagsTestBase
Provides helper methods for Entity cache tags tests.

Namespace

Drupal\system\Tests\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.