Skip to content

Commit

Permalink
API Stop using deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 3, 2022
1 parent 9b91b2d commit 132c00f
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 132c00f

Please sign in to comment.