public function testAfterIdentifyEmptyUserSocialLogin()
{
$this->Trait = $this->getMockBuilder('CakeDC\\Users\\Controller\\Traits\\LoginTrait')->setMethods(['dispatchEvent', 'redirect', '_isSocialLogin'])->getMockForTrait();
$this->Trait->expects($this->any())->method('_isSocialLogin')->will($this->returnValue(true));
$this->_mockDispatchEvent(new Event('event'));
$this->Trait->request = $this->getMockBuilder('Cake\\Network\\Request')->setMethods(['is'])->getMock();
$this->Trait->Auth = $this->getMockBuilder('Cake\\Controller\\Component\\AuthComponent')->setMethods(['user', 'identify', 'setUser', 'redirectUrl'])->disableOriginalConstructor()->getMock();
$this->Trait->login();
}