Skip to content

Commit

Permalink
Merge pull request #209 from creative-commoners/pulls/7/unit-test
Browse files Browse the repository at this point in the history
MNT Update unit test
  • Loading branch information
GuySartorelli authored Oct 22, 2024
2 parents 0563919 + 7ad1218 commit 096eca8
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 096eca8

Please sign in to comment.