File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Name: blogcommentsconfig
3
3
Only :
4
4
moduleexists : comments
5
5
---
6
- Comment :
6
+ SilverStripe\Comments\Model\ Comment :
7
7
extensions :
8
8
- SilverStripe\Blog\Model\BlogCommentExtension
9
9
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use SilverStripe \Blog \Model \BlogPost ;
3
4
use SilverStripe \Dev \SapphireTest ;
4
5
5
6
class BlogPostNotificationsTest extends SapphireTest
@@ -16,8 +17,8 @@ public function testUpdateNotificationRecipients()
16
17
$ this ->markTestSkipped ('Comments Notification module is not installed ' );
17
18
}
18
19
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 ();
21
22
$ comment ->Comment = 'This is a comment ' ;
22
23
$ comment ->write ();
23
24
$ recipients = $ blogPost ->notificationRecipients (
@@ -41,8 +42,8 @@ public function testUpdateNotificationSubject()
41
42
if (!class_exists ('CommentNotifier ' )) {
42
43
$ this ->markTestSkipped ('Comments Notification module is not installed ' );
43
44
}
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 ();
46
47
$ comment ->Comment = 'This is a comment ' ;
47
48
$ comment ->write ();
48
49
$ recipients = $ blogPost ->notificationRecipients (
You can’t perform that action at this time.
0 commit comments