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:
@@ -31,7 +31,11 @@ class FeedAndImageTest extends PageTestCase {
|
||||
// The front page, then the visible stories, newest first
|
||||
$this->assertSame(array('Front Page', 'Tom & "Jerry"', 'Picture', 'Not an image'),
|
||||
array_map('strval', iterator_to_array($xml->xpath('/rss/channel/item/title'), FALSE)));
|
||||
$this->assertSame('http://xxx.org.za/article?id=1', (string)$items[1]->link);
|
||||
// The addresses come from SITE_URL
|
||||
$this->assertSame('https://site.test/', (string)$xml->channel->link);
|
||||
$this->assertSame('https://site.test/article?id=1', (string)$items[1]->link);
|
||||
$this->assertSame('editor@site.test (Editors)', (string)$xml->channel->managingEditor);
|
||||
$this->assertStringContainsString('edi', $feed['body']);
|
||||
$this->assertSame('Wait… a bold move & more.', (string)$items[1]->description);
|
||||
$this->assertSame('Ann <ann>', (string)$items[1]->children('http://purl.org/dc/elements/1.1/')->creator);
|
||||
$this->assertSame('Image: Picture', (string)$items[2]->description);
|
||||
|
||||
Reference in New Issue
Block a user