mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 11:58:51 +00:00
[ticket/17135] Fix invalid smtp in tests
PHPBB3-17135
This commit is contained in:
parent
df5ab5b5d8
commit
715496b76d
2 changed files with 3 additions and 3 deletions
|
@ -581,7 +581,7 @@ class messenger
|
|||
*/
|
||||
function get_transport($dummy = false)
|
||||
{
|
||||
if ($dummy)
|
||||
if ($dummy || empty($this->config['smtp_host']))
|
||||
{
|
||||
$dsn = 'null://null';
|
||||
}
|
||||
|
@ -600,7 +600,7 @@ class messenger
|
|||
|
||||
$transport = Transport::fromDsn($dsn);
|
||||
|
||||
if ($this->config['smtp_delivery'])
|
||||
if ($this->config['smtp_delivery'] && $dsn != 'null://null')
|
||||
{
|
||||
// Set ssl context options, see http://php.net/manual/en/context.ssl.php
|
||||
$verify_peer = (bool) $this->config['smtp_verify_peer'];
|
||||
|
|
|
@ -418,7 +418,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
|||
|
||||
$iohandler->set_input('email_enable', true);
|
||||
$iohandler->set_input('smtp_delivery', '1');
|
||||
$iohandler->set_input('smtp_host', 'nxdomain.phpbb.com');
|
||||
$iohandler->set_input('smtp_host', '');
|
||||
$iohandler->set_input('smtp_auth', 'PLAIN');
|
||||
$iohandler->set_input('smtp_user', 'nxuser');
|
||||
$iohandler->set_input('smtp_pass', 'nxpass');
|
||||
|
|
Loading…
Add table
Reference in a new issue