public function FormModeManagerUiTest::testFormModeManagerNodeOverview in Form mode manager 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/FormModeManagerUiTest.php \Drupal\Tests\form_mode_manager\Functional\FormModeManagerUiTest::testFormModeManagerNodeOverview()
Tests Form Mode links provide by module for Node entity.
File
- tests/
src/ Functional/ FormModeManagerUiTest.php, line 107
Class
- FormModeManagerUiTest
- Tests the Form mode manager user interfaces.
Namespace
Drupal\Tests\form_mode_manager\FunctionalCode
public function testFormModeManagerNodeOverview() {
Role::load($this->adminUser
->getRoles()[1])
->grantPermission('access content overview')
->save();
$this
->drupalLogin($this->adminUser);
$this
->drupalGet('admin/content');
$this
->assertSession()
->linkExists("Add node as {$this->nodeFormMode->label()}");
$this
->assertSession()
->linkExists("Edit as {$this->nodeFormMode->label()}");
}