function EntityRevisionsTest::testRevisions

Check node revision related operations.

File

core/modules/system/tests/src/Functional/Entity/EntityRevisionsTest.php, line 58

Class

EntityRevisionsTest
Tests modifying an entity with revisions.

Namespace

Drupal\Tests\system\Functional\Entity

Code

public function testRevisions() {
  // 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.