public function NodeViewTest::testLinkHeader in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Functional/NodeViewTest.php \Drupal\Tests\node\Functional\NodeViewTest::testLinkHeader()
- 9 core/modules/node/tests/src/Functional/NodeViewTest.php \Drupal\Tests\node\Functional\NodeViewTest::testLinkHeader()
Tests the Link header.
File
- core/
modules/ node/ tests/ src/ Functional/ NodeViewTest.php, line 36
Class
- NodeViewTest
- Tests the node/{node} page.
Namespace
Drupal\Tests\node\FunctionalCode
public function testLinkHeader() {
$node = $this
->drupalCreateNode();
$this
->drupalGet($node
->toUrl());
$this
->assertArrayNotHasKey('Link', $this
->getSession()
->getResponseHeaders());
}