public function testCreatePasswordVerificationEmailNotFound() { $data = array('email' => '*****@*****.**'); $this->getMockMembersMapper()->shouldReceive('fetchOneForEmail')->with($data['email'])->andReturnNull()->once(); $returnedProcessResult = $this->forgotPasswordProcess->createPasswordVerification($data['email']); $this->assertEquals($this->getProcessResultFailure('Could not find that email address'), $returnedProcessResult); }