You are here

public function EntityRevisionsTest::testRevisions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntityRevisionsTest.php \Drupal\system\Tests\Entity\EntityRevisionsTest::testRevisions()

Check node revision related operations.

File

core/modules/system/src/Tests/Entity/EntityRevisionsTest.php, line 48
Contains \Drupal\system\Tests\Entity\EntityRevisionsTest.

Class

EntityRevisionsTest
Create a entity with revisions and test viewing, saving, reverting, and deleting revisions.

Namespace

Drupal\system\Tests\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);
  }
}