Skip to content

Commit

Permalink
Merge pull request #74 from creative-commoners/pulls/2.3/add-missing-…
Browse files Browse the repository at this point in the history
…email-config

FIX Add missing config to fix silverstipe/admin tests.
  • Loading branch information
emteknetnz authored Apr 13, 2022
2 parents 0c479ad + 44e5364 commit 22b9ca2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TestSessionHTTPMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ protected function loadTestState(HTTPRequest $request)
$mailer = $testState->mailer;
Injector::inst()->registerService(new $mailer(), Mailer::class);
Email::config()->set("send_all_emails_to", null);
Email::config()->update('admin_email', '[email protected]');
}

// Connect to the test session database
Expand Down

0 comments on commit 22b9ca2

Please sign in to comment.