Skip to content

Commit

Permalink
@adam-vessey's fix for drupalGet headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel committed Apr 3, 2024
1 parent 13bc15e commit a2c31fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/Functional/LinkHeaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function testMediaLinkHeaders() {
$media_url = $this->media->toUrl('canonical', ['absolute' => TRUE])->toString();

// Perform a GET request as anonymous.
$this->drupalGet($media_url, [], ['Cache-Control: no-cache']);
$this->drupalGet($media_url, [], ['Cache-Control' => 'no-cache']);
// Check link headers.
$this->assertTrue(
$this->validateLinkHeaderWithUrl('describes', $file_url, '', 'text/plain') == 1,
Expand Down Expand Up @@ -174,7 +174,7 @@ public function testMediaLinkHeaders() {
$this->drupalLogin($account);

// Perform a GET request with update media permissions.
$this->drupalGet($media_url, [], ['Cache-Control: no-cache']);
$this->drupalGet($media_url, [], ['Cache-Control' => 'no-cache']);

// Check link headers again, the edit-media link header should be present.
$this->assertTrue(
Expand Down

0 comments on commit a2c31fc

Please sign in to comment.