specify error message
This commit is contained in:
parent
c502926daf
commit
18d9748e64
@ -137,7 +137,7 @@ abstract class Request implements RequestInterface
|
|||||||
Assert::that($this->getOptions())->isArray();
|
Assert::that($this->getOptions())->isArray();
|
||||||
|
|
||||||
Assert::that( $this->getRecipientsList() )->isInstanceOf(RecipientsList::class)->notEmpty();
|
Assert::that( $this->getRecipientsList() )->isInstanceOf(RecipientsList::class)->notEmpty();
|
||||||
Assert::that( $this->getRecipientsList()->getRecipients())->notEmpty();
|
Assert::that( $this->getRecipientsList()->getRecipients())->notEmpty('request must contain a recipient');
|
||||||
Assert::thatAll( $this->getRecipientsList() )->isInstanceOf( Recipient::class )->notEmpty();
|
Assert::thatAll( $this->getRecipientsList() )->isInstanceOf( Recipient::class )->notEmpty();
|
||||||
|
|
||||||
// optional properties
|
// optional properties
|
||||||
|
Loading…
Reference in New Issue
Block a user