Add the possibility to send tasks and comments to multiple recipients
This commit is contained in:
@@ -10,16 +10,13 @@ class TaskValidatorTest extends Base
|
||||
{
|
||||
$taskValidator = new TaskValidator($this->container);
|
||||
|
||||
$result = $taskValidator->validateEmailCreation(array('email' => 'test@localhost', 'subject' => 'test'));
|
||||
$result = $taskValidator->validateEmailCreation(array('emails' => 'test@localhost', 'subject' => 'test'));
|
||||
$this->assertTrue($result[0]);
|
||||
|
||||
$result = $taskValidator->validateEmailCreation(array('email' => 'test', 'subject' => 'test'));
|
||||
$this->assertFalse($result[0]);
|
||||
|
||||
$result = $taskValidator->validateEmailCreation(array('subject' => 'test'));
|
||||
$this->assertFalse($result[0]);
|
||||
|
||||
$result = $taskValidator->validateEmailCreation(array('email' => 'test@localhost'));
|
||||
$result = $taskValidator->validateEmailCreation(array('emails' => 'test@localhost, test@localhost'));
|
||||
$this->assertFalse($result[0]);
|
||||
}
|
||||
|
||||
@@ -104,7 +101,6 @@ class TaskValidatorTest extends Base
|
||||
$result = $taskValidator->validateCreation(array('project_id' => 1, 'title' => 'test', 'date_due' => '02/01/2017 1:15 pm'));
|
||||
$this->assertFalse($result[0]);
|
||||
|
||||
|
||||
// date_started
|
||||
// ISO dates
|
||||
$result = $taskValidator->validateCreation(array('project_id' => 1, 'title' => 'test', 'date_started' => '2017-02-01'));
|
||||
|
||||
Reference in New Issue
Block a user