我正在測試一個方法,將值從一個對象映射到另一個。 然而,當它來到可空,更確切地說bool?每次函數返回布爾變成空。 實施例: 我想測試此方法: public Family CreateFamily(Family a, Father b)
{
// some property mapping here
IsEnable = true; // where IsEnable is
如何在不發送電子郵件的情況下測試此代碼段? public function forgot()
{
$isValid = $this->updateForm->valid(Input::only('email'));
if ($isValid) {
$result = $this->user->forgot($this->updateForm->dat