summaryrefslogtreecommitdiff
path: root/tests/units/Validator/CommentValidatorTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-11-17 14:46:23 -0800
committerFrederic Guillot <fred@kanboard.net>2017-11-17 14:46:23 -0800
commit2a313eb971ab36e166308f7882897ef204234d0a (patch)
tree6bb7a72ee7bce1c0baef908af49ff1b817c939f2 /tests/units/Validator/CommentValidatorTest.php
parent3b786e05e0e51ca6f85ef9a3ca0d649f3e34c534 (diff)
Add the possibility to send tasks and comments to multiple recipients
Diffstat (limited to 'tests/units/Validator/CommentValidatorTest.php')
-rw-r--r--tests/units/Validator/CommentValidatorTest.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/units/Validator/CommentValidatorTest.php b/tests/units/Validator/CommentValidatorTest.php
index db6da446..6066639b 100644
--- a/tests/units/Validator/CommentValidatorTest.php
+++ b/tests/units/Validator/CommentValidatorTest.php
@@ -14,7 +14,7 @@ class CommentValidatorTest extends Base
'user_id' => 1,
'task_id' => 1,
'comment' => 'blah',
- 'email' => 'test@localhost',
+ 'emails' => 'test@localhost, another@localhost',
'subject' => 'something',
));
@@ -24,20 +24,10 @@ class CommentValidatorTest extends Base
'user_id' => 1,
'task_id' => 1,
'comment' => 'blah',
- 'email' => 'invalid',
'subject' => 'something',
));
$this->assertFalse($result[0]);
-
- $result = $commentValidator->validateEmailCreation(array(
- 'user_id' => 1,
- 'task_id' => 1,
- 'comment' => 'bla',
- 'email' => 'test@localhost',
- ));
-
- $this->assertFalse($result[0]);
}
public function testValidateCreation()