public function testFailedSocialUserNotActive()
{
$event = new Entity();
$event->data = ['exception' => new UserNotActiveException('Facebook user-1'), 'rawData' => ['id' => 111111, 'username' => 'user-1']];
$this->_mockFlash();
$this->_mockRequestGet();
$this->Trait->Flash->expects($this->once())->method('success')->with('Your user has not been validated yet. Please check your inbox for instructions');
$this->Trait->expects($this->once())->method('redirect')->with(['plugin' => 'CakeDC/Users', 'controller' => 'Users', 'action' => 'login']);
$this->Trait->Auth->expects($this->at(0))->method('config')->with('authError', 'Your user has not been validated yet. Please check your inbox for instructions');
$this->Trait->Auth->expects($this->at(1))->method('config')->with('flash.params', ['class' => 'success']);
$this->Trait->failedSocialLogin($event->data['exception'], $event->data['rawData'], true);
}