Skip to content

Commit 98645af

Browse files
committed
Implement Blog namespaces
1 parent 077929f commit 98645af

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

_config/comments.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Name: blogcommentsconfig
33
Only:
44
moduleexists: comments
55
---
6-
Comment:
6+
SilverStripe\Comments\Model\Comment:
77
extensions:
88
- SilverStripe\Blog\Model\BlogCommentExtension
99

tests/BlogPostNotificationsTest.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use SilverStripe\Blog\Model\BlogPost;
34
use SilverStripe\Dev\SapphireTest;
45

56
class BlogPostNotificationsTest extends SapphireTest
@@ -16,8 +17,8 @@ public function testUpdateNotificationRecipients()
1617
$this->markTestSkipped('Comments Notification module is not installed');
1718
}
1819

19-
$blogPost = $this->objFromFixture('SilverStripe\\Blog\\Model\\BlogPost', 'PostC');
20-
$comment = new Comment();
20+
$blogPost = $this->objFromFixture(BlogPost::class, 'PostC');
21+
$comment = new \SilverStripe\Comments\Model\Comment();
2122
$comment->Comment = 'This is a comment';
2223
$comment->write();
2324
$recipients = $blogPost->notificationRecipients(
@@ -41,8 +42,8 @@ public function testUpdateNotificationSubject()
4142
if (!class_exists('CommentNotifier')) {
4243
$this->markTestSkipped('Comments Notification module is not installed');
4344
}
44-
$blogPost = $this->objFromFixture('SilverStripe\\Blog\\Model\\BlogPost', 'PostC');
45-
$comment = new Comment();
45+
$blogPost = $this->objFromFixture(BlogPost::class, 'PostC');
46+
$comment = new use SilverStripe\Comments\Model\Comment();
4647
$comment->Comment = 'This is a comment';
4748
$comment->write();
4849
$recipients = $blogPost->notificationRecipients(

0 commit comments

Comments
 (0)