Skip to content

Commit

Permalink
MNT Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 21, 2024
1 parent 4763bda commit 7ad1218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/php/Publisher/FilesystemPublisherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function testRedirectorPageWhenPHP(): void
$redirectorPage = RedirectorPage::create();
$redirectorPage->URLSegment = 'somewhere-else';
$redirectorPage->RedirectionType = 'External';
$redirectorPage->ExternalURL = 'silverstripe.org';
$redirectorPage->ExternalURL = 'https://example.org/path';
$redirectorPage->write();
$redirectorPage->publishRecursive();

Expand All @@ -301,7 +301,7 @@ public function testRedirectorPageWhenPHP(): void
$this->assertFileExists($this->fsp->getDestPath() . 'somewhere-else.php');
$phpCacheConfig = require $this->fsp->getDestPath() . 'somewhere-else.php';
$this->assertSame(301, $phpCacheConfig['responseCode']);
$this->assertContains('location: http://silverstripe.org', $phpCacheConfig['headers']);
$this->assertContains('location: https://example.org/path', $phpCacheConfig['headers']);
}

public function testRedirectorPageWhenHTMLOnly(): void
Expand Down

0 comments on commit 7ad1218

Please sign in to comment.