Example #1
0
 public function testLogin()
 {
     $customerId = 1;
     $username = '******';
     $password = '******';
     $customerDataMock = $this->prepareLoginDataMock($customerId);
     $this->customerAccountServiceMock->expects($this->once())->method('authenticate')->with($this->equalTo($username), $this->equalTo($password))->will($this->returnValue($customerDataMock));
     $this->assertTrue($this->_model->login($username, $password));
 }