public function ConfigEntityRevisionsTraitTest::canSetAndGetARevisionID in Config Entity Revisions 1.x
Same name and namespace in other branches
- 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
Namespace
Drupal\Tests\config_entity_revisions\UnitCode
public function canSetAndGetARevisionID() {
$instance = new TraitTest();
$instance
->updateLoadedRevisionId(704);
$this
->assertEquals(704, $instance
->getRevisionId());
}