forked from silverstripe/silverstripe-campaign-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace extend with invokeWithExtensions (Fixes silverstripe#16)
Allows concrete commenting classes to define behaviour rather than requiring configuration to be set on an extension to the class.
- Loading branch information
Showing
4 changed files
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ public function testGetRecipients() | |
$item1 = $this->objFromFixture(CommentNotifiableTestDataObject::class, 'item1'); | ||
$item2 = $this->objFromFixture(CommentNotifiableTestDataObject::class, 'item2'); | ||
|
||
$this->assertEquals(array('[email protected]'), $item1->notificationRecipients($comment1)); | ||
$this->assertEquals(array('[email protected]', '[email protected]'), $item1->notificationRecipients($comment1)); | ||
$this->assertEquals(array('[email protected]'), $item2->notificationRecipients($comment2)); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters