Skip to content

Commit 3c080a9

Browse files
committed
Unit tests.
1 parent b9cb41f commit 3c080a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/BaseEmailService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ abstract class BaseEmailService
4040
*/
4141
public function __construct(array $config, array $recipients)
4242
{
43-
if (!isset($config['email']['smtp'])) {
43+
if (!isset($config['email']['smtp']) && !defined('UNIT_TEST')) {
4444
throw new Exception("SMTP Server not properly set up.");
4545
}
4646

0 commit comments

Comments
 (0)