CakeDC\Users\Test\TestCase\Auth\SocialAuthenticateTest::testGetUserNotActive PHP Метод

testGetUserNotActive() публичный Метод

Test getUser
public testGetUserNotActive ( $rawData, $mapper )
    public function testGetUserNotActive($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 UserNotActiveException('user not active')));
        $this->SocialAuthenticate->getUser($this->Request);
    }