Skip to content

Commit

Permalink
Merge pull request #83 from creative-commoners/pulls/2/stop-depr
Browse files Browse the repository at this point in the history
API Stop using deprecated API
  • Loading branch information
sabina-talipova authored Nov 11, 2022
2 parents 9b91b2d + 132c00f commit ffe1bc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/TestSessionEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ class TestSessionEnvironment

public function __construct($id = null)
{
$this->constructExtensions();
if ($id) {
$this->id = $id;
}
Expand Down
2 changes: 1 addition & 1 deletion src/TestSessionHTTPMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +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]');
Email::config()->set('admin_email', '[email protected]');
}

// Connect to the test session database
Expand Down

0 comments on commit ffe1bc8

Please sign in to comment.