public function testQuestionnaireConditionInvalid() { $this->question->setDocusignEligibleAnswer(true); $this->answer->setValue(false); $this->transferInformation->setIsIncludePolicy(false); $this->transferInformation->setTransferCustodian($this->custodian); $this->transferInformation->addQuestionnaireAnswer($this->answer); $this->assertEquals(false, $this->checker->checkConditions($this->transferInformation)); }
/** * Check is docusign allowed for transfer client account by conditions * * @param TransferInformation $transferInformation * @param $conditions * @return bool */ public function isDocusignAllowed(TransferInformation $transferInformation, $conditions) { $checker = new DocusignChecker($conditions); return $checker->checkConditions($transferInformation); }