Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Stop using deprecated API #83

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
Copy link
Member Author

@emteknetnz emteknetnz Nov 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing call to deprecated noop method Extensible::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