|
@@ 229-236 (lines=8) @@
|
| 226 |
|
$this->assertTrue($item->canModerateComments()); |
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
public function testGetCommentRSSLink() |
| 230 |
|
{ |
| 231 |
|
Config::modify()->merge('SilverStripe\\Control\\Director', 'alternate_base_url', 'http://unittesting.local'); |
| 232 |
|
|
| 233 |
|
$item = $this->objFromFixture(CommentableItem::class, 'first'); |
| 234 |
|
$link = $item->getCommentRSSLink(); |
| 235 |
|
$this->assertEquals('http://unittesting.local/comments/rss', $link); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
public function testGetCommentRSSLinkPage() |
| 239 |
|
{ |
|
@@ 238-248 (lines=11) @@
|
| 235 |
|
$this->assertEquals('http://unittesting.local/comments/rss', $link); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
public function testGetCommentRSSLinkPage() |
| 239 |
|
{ |
| 240 |
|
Config::modify()->merge('SilverStripe\\Control\\Director', 'alternate_base_url', 'http://unittesting.local'); |
| 241 |
|
|
| 242 |
|
$item = $this->objFromFixture(CommentableItem::class, 'first'); |
| 243 |
|
$page = $item->getCommentRSSLinkPage(); |
| 244 |
|
$this->assertEquals( |
| 245 |
|
'http://unittesting.local/comments/rss/SilverStripe-Comments-Tests-Stubs-CommentableItem/' . $item->ID, |
| 246 |
|
$page |
| 247 |
|
); |
| 248 |
|
} |
| 249 |
|
|
| 250 |
|
public function testCommentsForm() |
| 251 |
|
{ |