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
GuySartorelli authored Oct 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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

0 comments on commit 096eca8

Please sign in to comment.