function EntityRevisionsTest::testRevisions
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php \Drupal\Tests\system\Functional\Entity\EntityRevisionsTest::testRevisions()
- 8.9.x core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php \Drupal\Tests\system\Functional\Entity\EntityRevisionsTest::testRevisions()
- 10 core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php \Drupal\Tests\system\Functional\Entity\EntityRevisionsTest::testRevisions()
Check node revision related operations.
File
-
core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityRevisionsTest.php, line 57
Class
- EntityRevisionsTest
- Tests modifying an entity with revisions.
Namespace
Drupal\Tests\system\Functional\EntityCode
public function testRevisions() : void {
// All revisable entity variations have to have the same results.
foreach (entity_test_entity_types(ENTITY_TEST_TYPES_REVISABLE) as $entity_type) {
$this->runRevisionsTests($entity_type);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.