public function testSendSocialValidationEmailMailer()
{
$this->Table = TableRegistry::get('CakeDC/Users.SocialAccounts');
$user = $this->Table->find()->contain('Users')->first();
$email = new Email(['from' => '[email protected]', 'transport' => 'test', 'template' => 'CakeDC/Users.my_template', 'emailFormat' => 'both']);
$this->EmailSender->expects($this->once())->method('getMailer')->with('CakeDC/Users.Users')->will($this->returnValue($this->UserMailer));
$this->UserMailer->expects($this->once())->method('send')->with('socialAccountValidation', [$user->user, $user, 'CakeDC/Users.my_template']);
$this->EmailSender->sendSocialValidationEmail($user, $user->user, $email);
}