function EntityTypeInfoTest::providerTestEntityTypeAlter
Same name in other branches
- 9 core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php \Drupal\Tests\content_moderation\Kernel\EntityTypeInfoTest::providerTestEntityTypeAlter()
- 10 core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php \Drupal\Tests\content_moderation\Kernel\EntityTypeInfoTest::providerTestEntityTypeAlter()
- 11.x core/modules/content_moderation/tests/src/Kernel/EntityTypeInfoTest.php \Drupal\Tests\content_moderation\Kernel\EntityTypeInfoTest::providerTestEntityTypeAlter()
Provides test data for testEntityTypeAlter().
Return value
array An array of test cases, where each test case is an array with the following values:
- An entity type ID.
- Whether the entity type is moderatable or not.
File
-
core/
modules/ content_moderation/ tests/ src/ Kernel/ EntityTypeInfoTest.php, line 101
Class
- EntityTypeInfoTest
- @coversDefaultClass \Drupal\content_moderation\EntityTypeInfo
Namespace
Drupal\Tests\content_moderation\KernelCode
public function providerTestEntityTypeAlter() {
$tests = [];
$tests['non_internal_non_revisionable'] = [
'entity_test',
FALSE,
];
$tests['non_internal_revisionable'] = [
'entity_test_rev',
TRUE,
];
$tests['internal_non_revisionable'] = [
'entity_test_no_label',
FALSE,
];
$tests['internal_revisionable'] = [
'content_moderation_state',
FALSE,
];
return $tests;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.