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:
tim
2026-09-26 15:27:51 +02:00
parent 52f4855850
commit 5d657d7e45
11 changed files with 75 additions and 30 deletions
+3 -3
View File
@@ -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 &amp; <strong>bold</strong>.</p>\n<p>Line one<br />line two</p><p></p><p>&lt;b&gt; is text &#8220;quoted&#8221;</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 {