Unit tests should disable sending email before they execute, we don't want any accidental emails sent when developers are
running the unit tests to verify functionality. Add commented out example code that will enable developers to disable email via a define in include/config.php
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
// disable emailing
|
||||
if(!defined("DISABLE_EMAIL"))
|
||||
define("DISABLE_EMAIL", true);
|
||||
|
||||
include_once("test_user.php");
|
||||
echo "\n";
|
||||
include_once("test_query.php");
|
||||
|
||||
Reference in New Issue
Block a user