Take the site address from SITE_URL.
The feed links, the notification email, the webmaster address and the cookie domain now use it.
This commit is contained in:
@@ -32,7 +32,7 @@ class FrontPagesTest extends PageTestCase {
|
||||
public function testTheSessionCookieIsSecure(): void {
|
||||
$cookie = $this->header($this->get('/'), 'Set-Cookie');
|
||||
$this->assertMatchesRegularExpression('/^PHPSESSID=[0-9a-z,-]+;/', $cookie);
|
||||
foreach (array('path=/', 'domain=.xxx.org.za', 'secure', 'HttpOnly', 'SameSite=Lax') as $flag)
|
||||
foreach (array('path=/', 'domain=.site.test', 'secure', 'HttpOnly', 'SameSite=Lax') as $flag)
|
||||
$this->assertStringContainsString("; $flag", $cookie);
|
||||
}
|
||||
|
||||
@@ -89,6 +89,8 @@ class FrontPagesTest extends PageTestCase {
|
||||
$page = $this->get('/about');
|
||||
$this->assertSame(200, $page['status']);
|
||||
$this->assertStringContainsString('</html>', $page['body']);
|
||||
// The webmaster's address, at the host of SITE_URL, hidden from harvesters
|
||||
$this->assertStringContainsString('<a href="' . hidden_email('mailto:webmaster@site.test') . '">email us</a>', $page['body']);
|
||||
}
|
||||
|
||||
public function testTheTestsAreNotServed(): void {
|
||||
|
||||
Reference in New Issue
Block a user