ManageDisplayTabTest.php in Display Suite 8.2
File
src/Tests/ManageDisplayTabTest.php
View source
<?php
namespace Drupal\ds\Tests;
class ManageDisplayTabTest extends FastTestBase {
public function testFieldPlugin() {
$node = $this
->entitiesTestSetup();
$this
->drupalGet('node/' . $node
->id());
$this
->assertRaw('Manage display', 'Manage display tab title found on node');
$this
->assertRaw('node/' . $node
->id() . '/manage_display', 'Manage display tab link found on node');
$this
->drupalGet('node/' . $node
->id() . '/manage_display');
$this
->drupalGet('user/' . $this->adminUser
->id());
$this
->assertRaw('Manage display', 'Manage display tab title found on user');
$this
->assertRaw('user/' . $this->adminUser
->id() . '/manage_display', 'Manage display tab link found on user');
$this
->drupalGet('user/' . $this->adminUser
->id() . '/manage_display');
$this
->drupalGet('taxonomy/term/1');
$this
->assertRaw('Manage display', 'Manage display,title tab found on term');
$this
->assertRaw('taxonomy/term/1/manage_display', 'Manage display tab link found on term');
$this
->drupalGet('taxonomy/term/1/manage_display');
}
}