public function SMTPConfigFormTest::setDefaultConfig in SMTP Authentication Support 8
Sets the default smtp config.
2 calls to SMTPConfigFormTest::setDefaultConfig()
- SMTPConfigFormTest::testBuildFormDisabledMessage in tests/
src/ Unit/ SMTPConfigFormTest.php - Test if enabled message is properly shown.
- SMTPConfigFormTest::testBuildFormEnabledMessage in tests/
src/ Unit/ SMTPConfigFormTest.php - Test if enabled message is properly shown.
File
- tests/
src/ Unit/ SMTPConfigFormTest.php, line 65
Class
- SMTPConfigFormTest
- Validate requirements for SMTPConfigForm.
Namespace
Drupal\Tests\smtp\UnitCode
public function setDefaultConfig() {
$this->mockConfig
->get('smtp_on')
->willReturn(TRUE);
$this->mockConfig
->get('smtp_host')
->willReturn('');
$this->mockConfig
->get('smtp_hostbackup')
->willReturn('');
$this->mockConfig
->get('smtp_port')
->willReturn('');
$this->mockConfig
->get('smtp_protocol')
->willReturn('');
$this->mockConfig
->get('smtp_autotls')
->willReturn(TRUE);
$this->mockConfig
->get('smtp_timeout')
->willReturn('');
$this->mockConfig
->get('smtp_username')
->willReturn('');
$this->mockConfig
->get('smtp_password')
->willReturn('');
$this->mockConfig
->get('smtp_from')
->willReturn('');
$this->mockConfig
->get('smtp_fromname')
->willReturn('');
$this->mockConfig
->get('smtp_allowhtml')
->willReturn('');
$this->mockConfig
->get('smtp_client_hostname')
->willReturn('');
$this->mockConfig
->get('smtp_client_helo')
->willReturn('');
$this->mockConfig
->get('smtp_debugging')
->willReturn('');
$this->mockConfig
->get('smtp_keepalive')
->willReturn(FALSE);
$this->mockConfig
->get('smtp_reroute_address')
->willReturn('');
}