public function SupportTicketViewTest::testHtmlHeadLinks in Support Ticketing System 8
Tests the html head links.
File
- modules/
support_ticket/ src/ Tests/ SupportTicketViewTest.php, line 35 - Contains \Drupal\support_ticket\Tests\SupportTicketViewTest.
Class
- SupportTicketViewTest
- Tests the support_ticket/{support_ticket} page.
Namespace
Drupal\support_ticket\TestsCode
public function testHtmlHeadLinks() {
$support_ticket = $this
->drupalCreateSupportTicket();
$this
->drupalGet($support_ticket
->urlInfo());
$result = $this
->xpath('//link[@rel = "version-history"]');
$this
->assertEqual($result[0]['href'], $support_ticket
->url('version-history'));
$result = $this
->xpath('//link[@rel = "edit-form"]');
$this
->assertEqual($result[0]['href'], $support_ticket
->url('edit-form'));
$result = $this
->xpath('//link[@rel = "canonical"]');
$this
->assertEqual($result[0]['href'], $support_ticket
->url());
}