public function testMakeRecipientsForDynamicTriggeredUser() { $form = new DynamicTriggeredByUserWorkflowEmailMessageRecipientForm('WorkflowModelTestItem', Workflow::TYPE_ON_SAVE); $model = new WorkflowModelTestItem(); $recipients = $form->makeRecipients($model, User::getById(self::$bobbyUserId)); $this->assertEquals(1, count($recipients)); $this->assertEquals('bobby bobbyson', $recipients[0]->toName); $this->assertEquals('*****@*****.**', $recipients[0]->toAddress); $this->assertEquals(self::$bobbyUserId, $recipients[0]->personsOrAccounts[0]->id); }