public function FormModeManagerUiTest::testFormModeManagerNodeOverview in Form mode manager 8.2
Same name and namespace in other branches
- 8 tests/src/Functional/FormModeManagerUiTest.php \Drupal\Tests\form_mode_manager\Functional\FormModeManagerUiTest::testFormModeManagerNodeOverview()
Tests Form Mode links provide by module for Node entity.
Throws
\Behat\Mink\Exception\ExpectationException
File
- tests/
src/ Functional/ FormModeManagerUiTest.php, line 296
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 content as {$this->nodeFormMode->label()}");
$this
->assertSession()
->linkExists("Edit as {$this->nodeFormMode->label()}");
}