/** * @covers Mozu\Api\Security\Authentication::getAccessToken * @todo Implement testGetAccessToken(). */ public function testCustomerLogin() { try { $userAuthInfo = new CustomerUserAuthInfo(); $userAuthInfo->username = $this->customerUserName; $userAuthInfo->password = $this->customerPassword; $authenticationProfile = CustomerAuthenticator::authenticate($userAuthInfo, $this->tenantId, $this->siteId); $this->assertNotNull($authenticationProfile->authTicket); $this->assertNotNull($authenticationProfile->customerAccount); } catch (Exception $e) { parent::printError($e); $this->fail($e->getMessage()); } }