mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Implement Blog namespaces
This commit is contained in:
parent
077929f8bf
commit
98645af960
@ -3,7 +3,7 @@ Name: blogcommentsconfig
|
|||||||
Only:
|
Only:
|
||||||
moduleexists: comments
|
moduleexists: comments
|
||||||
---
|
---
|
||||||
Comment:
|
SilverStripe\Comments\Model\Comment:
|
||||||
extensions:
|
extensions:
|
||||||
- SilverStripe\Blog\Model\BlogCommentExtension
|
- SilverStripe\Blog\Model\BlogCommentExtension
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use SilverStripe\Blog\Model\BlogPost;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
|
|
||||||
class BlogPostNotificationsTest extends SapphireTest
|
class BlogPostNotificationsTest extends SapphireTest
|
||||||
@ -16,8 +17,8 @@ class BlogPostNotificationsTest extends SapphireTest
|
|||||||
$this->markTestSkipped('Comments Notification module is not installed');
|
$this->markTestSkipped('Comments Notification module is not installed');
|
||||||
}
|
}
|
||||||
|
|
||||||
$blogPost = $this->objFromFixture('SilverStripe\\Blog\\Model\\BlogPost', 'PostC');
|
$blogPost = $this->objFromFixture(BlogPost::class, 'PostC');
|
||||||
$comment = new Comment();
|
$comment = new \SilverStripe\Comments\Model\Comment();
|
||||||
$comment->Comment = 'This is a comment';
|
$comment->Comment = 'This is a comment';
|
||||||
$comment->write();
|
$comment->write();
|
||||||
$recipients = $blogPost->notificationRecipients(
|
$recipients = $blogPost->notificationRecipients(
|
||||||
@ -41,8 +42,8 @@ class BlogPostNotificationsTest extends SapphireTest
|
|||||||
if (!class_exists('CommentNotifier')) {
|
if (!class_exists('CommentNotifier')) {
|
||||||
$this->markTestSkipped('Comments Notification module is not installed');
|
$this->markTestSkipped('Comments Notification module is not installed');
|
||||||
}
|
}
|
||||||
$blogPost = $this->objFromFixture('SilverStripe\\Blog\\Model\\BlogPost', 'PostC');
|
$blogPost = $this->objFromFixture(BlogPost::class, 'PostC');
|
||||||
$comment = new Comment();
|
$comment = new use SilverStripe\Comments\Model\Comment();
|
||||||
$comment->Comment = 'This is a comment';
|
$comment->Comment = 'This is a comment';
|
||||||
$comment->write();
|
$comment->write();
|
||||||
$recipients = $blogPost->notificationRecipients(
|
$recipients = $blogPost->notificationRecipients(
|
||||||
|
Loading…
Reference in New Issue
Block a user