CakeDC\Users\Test\TestCase\Auth\SocialAuthenticateTest::testGetUserNotActiveAccount PHP Method

testGetUserNotActiveAccount() public method

Test getUser
public testGetUserNotActiveAccount ( $rawData, $mapper )
    public function testGetUserNotActiveAccount($rawData, $mapper)
    {
        $this->SocialAuthenticate->expects($this->once())->method('_authenticate')->with($this->Request)->will($this->returnValue($rawData));
        $this->SocialAuthenticate->expects($this->once())->method('_getProviderName')->will($this->returnValue('facebook'));
        $this->SocialAuthenticate->expects($this->once())->method('_mapUser')->will($this->returnValue($mapper));
        $this->SocialAuthenticate->expects($this->once())->method('_socialLogin')->will($this->throwException(new AccountNotActiveException('user not active')));
        $this->SocialAuthenticate->getUser($this->Request);
    }