From 7ad12184ffd0e98a35a109db5cacc705b949d4b6 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 22 Oct 2024 12:40:32 +1300 Subject: [PATCH] MNT Update unit test --- tests/php/Publisher/FilesystemPublisherTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/php/Publisher/FilesystemPublisherTest.php b/tests/php/Publisher/FilesystemPublisherTest.php index 734ba03..eae570b 100644 --- a/tests/php/Publisher/FilesystemPublisherTest.php +++ b/tests/php/Publisher/FilesystemPublisherTest.php @@ -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(); @@ -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