ManageDisplayTabTest.php in Display Suite 8.4
File
tests/src/Functional/ManageDisplayTabTest.php
View source
<?php
namespace Drupal\Tests\ds\Functional;
class ManageDisplayTabTest extends TestBase {
public function testFieldPlugin() {
$node = $this
->entitiesTestSetup();
$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');
$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');
$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');
}
}