Merge pull request #83 from creative-commoners/pulls/2/stop-depr

API Stop using deprecated API
This commit is contained in:
Sabina Talipova 2022-11-11 13:08:01 +13:00 committed by GitHub
commit ffe1bc8fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -69,7 +69,7 @@ class TestSessionHTTPMiddleware implements HTTPMiddleware
$mailer = $testState->mailer; $mailer = $testState->mailer;
Injector::inst()->registerService(new $mailer(), Mailer::class); Injector::inst()->registerService(new $mailer(), Mailer::class);
Email::config()->set("send_all_emails_to", null); 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 // Connect to the test session database