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:
@@ -16,8 +16,8 @@ class EmailTest extends TestCase {
|
||||
|
||||
public function testGoesToTheEditorsFromTheQueue(): void {
|
||||
$mail = $this->send('A title', 'Ann', '<p>Hello.</p>');
|
||||
$this->assertSame('editor@xxx.org.za', $mail['headers']['to']);
|
||||
$this->assertSame('x.x.x Queue <editor@xxx.org.za>', $mail['headers']['from']);
|
||||
$this->assertSame('editor@site.test', $mail['headers']['to']);
|
||||
$this->assertSame('x.x.x Queue <editor@site.test>', $mail['headers']['from']);
|
||||
$this->assertSame('New submission: A title', $mail['subject']);
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ class EmailTest extends TestCase {
|
||||
$mail = $this->send('T', 'Ann', "<p>First & <strong>bold</strong>.</p>\n<p>Line one<br />line two</p><p></p><p><b> is text “quoted”</p>");
|
||||
$this->assertSame("Please review the queue. Ann has sent the following new submission:\n\n"
|
||||
. "First & bold.\n\nLine one\nline two\n\n<b> is text “quoted”"
|
||||
. "\n\nhttp://xxx.org.za/publish/edit", trim($mail['body']));
|
||||
. "\n\nhttps://site.test/publish/edit", trim($mail['body']));
|
||||
}
|
||||
|
||||
public function testLongLinesAreWrapped(): void {
|
||||
|
||||
Reference in New Issue
Block a user