public function ManageDisplayTabTest::testFieldPlugin in Display Suite 8.3
Same name and namespace in other branches
- 8.4 tests/src/Functional/ManageDisplayTabTest.php \Drupal\Tests\ds\Functional\ManageDisplayTabTest::testFieldPlugin()
Test tabs.
File
- tests/
src/ Functional/ ManageDisplayTabTest.php, line 15
Class
- ManageDisplayTabTest
- Tests for the manage display tab in Display Suite.
Namespace
Drupal\Tests\ds\FunctionalCode
public function testFieldPlugin() {
/* @var \Drupal\node\NodeInterface $node */
$node = $this
->entitiesTestSetup();
// Verify we can see the manage display tab on a node and can click on it.
$this
->drupalGet('node/' . $node
->id());
$this
->assertSession()
->responseContains('Manage display');
$this
->assertSession()
->responseContains('node/' . $node
->id() . '/manage-display');
$this
->drupalGet('node/' . $node
->id() . '/manage-display');
// Verify we can see the manage display tab on a user and can click on it.
$this
->drupalGet('user/' . $this->adminUser
->id());
$this
->assertSession()
->responseContains('Manage display');
$this
->assertSession()
->responseContains('user/' . $this->adminUser
->id() . '/manage-display');
$this
->drupalGet('user/' . $this->adminUser
->id() . '/manage-display');
// Verify we can see the manage display tab on a taxonomy term and can click
// on it.
$this
->drupalGet('taxonomy/term/1');
$this
->assertSession()
->responseContains('Manage display');
$this
->assertSession()
->responseContains('taxonomy/term/1/manage-display');
$this
->drupalGet('taxonomy/term/1/manage-display');
}