public function test_Should_FailToValidate_When_SmtpEncryptionFieldIsInvalid()
 {
     $input = ['driver' => 'smtp', 'from_address' => '*****@*****.**', 'from_name' => 'from_name', 'smtp_host' => 'localhost', 'smtp_port' => 587, 'smtp_encryption' => 'invalid', 'smtp_username' => '*****@*****.**', 'smtp_password' => 'password', 'sendmail_path' => '/usr/sbin/sendmail -bs'];
     $form = new MailSettingFormLaravelValidator($this->app['validator']);
     $result = $form->with($input)->passes();
     $errors = $form->errors();
     $this->assertFalse($result, 'Expected validation to fail.');
     $this->assertInstanceOf('Illuminate\\Support\\MessageBag', $errors);
 }