You are here

public function ConfigEntityRevisionsTraitTest::canSetAndGetARevisionID in Config Entity Revisions 1.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/ConfigEntityRevisionsTraitTest.php \Drupal\Tests\config_entity_revisions\Unit\ConfigEntityRevisionsTraitTest::canSetAndGetARevisionID()

Test that we can set and get a revision ID using the trait.

@test

File

tests/src/Unit/ConfigEntityRevisionsTraitTest.php, line 14

Class

ConfigEntityRevisionsTraitTest

Namespace

Drupal\Tests\config_entity_revisions\Unit

Code

public function canSetAndGetARevisionID() {
  $instance = new TraitTest();
  $instance
    ->updateLoadedRevisionId(704);
  $this
    ->assertEquals(704, $instance
    ->getRevisionId());
}