You are here

public function ConfigEntityRevisionsRevertFormBaseTest::formIdStartsWithModuleName in Config Entity Revisions 1.x

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/ConfigEntityRevisionsRevertFormBaseTest.php \Drupal\Tests\config_entity_revisions\Unit\ConfigEntityRevisionsRevertFormBaseTest::formIdStartsWithModuleName()
  2. 8 tests/src/Unit/ConfigEntityRevisionsRevertFormBaseTest.php \Drupal\Tests\config_entity_revisions\Unit\ConfigEntityRevisionsRevertFormBaseTest::formIdStartsWithModuleName()

Check that getFormId includes the module name.

@test

File

tests/src/Unit/ConfigEntityRevisionsRevertFormBaseTest.php, line 218

Class

ConfigEntityRevisionsRevertFormBaseTest

Namespace

Drupal\Tests\config_entity_revisions\Unit

Code

public function formIdStartsWithModuleName() {
  $this->instance = $this
    ->getMockInstance(300);
  $this
    ->assertEquals($this->instance
    ->getFormId(), 'module_name_revision_revert_confirm');
}