API Stop using deprecated API

This commit is contained in:
Steve Boyd 2022-11-03 18:11:29 +13:00
parent 9b91b2de98
commit 132c00f122
2 changed files with 1 additions and 2 deletions

View File

@ -80,7 +80,6 @@ class TestSessionEnvironment
public function __construct($id = null)
{
$this->constructExtensions();
if ($id) {
$this->id = $id;
}

View File

@ -69,7 +69,7 @@ class TestSessionHTTPMiddleware implements HTTPMiddleware
$mailer = $testState->mailer;
Injector::inst()->registerService(new $mailer(), Mailer::class);
Email::config()->set("send_all_emails_to", null);
Email::config()->update('admin_email', 'no-reply@example.com');
Email::config()->set('admin_email', 'no-reply@example.com');
}
// Connect to the test session database