From 132c00f122481aad2cc0f50cca800f27f06bde57 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 3 Nov 2022 18:11:29 +1300 Subject: [PATCH] API Stop using deprecated API --- src/TestSessionEnvironment.php | 1 - src/TestSessionHTTPMiddleware.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TestSessionEnvironment.php b/src/TestSessionEnvironment.php index 9b6eeb9..0a729e3 100644 --- a/src/TestSessionEnvironment.php +++ b/src/TestSessionEnvironment.php @@ -80,7 +80,6 @@ class TestSessionEnvironment public function __construct($id = null) { - $this->constructExtensions(); if ($id) { $this->id = $id; } diff --git a/src/TestSessionHTTPMiddleware.php b/src/TestSessionHTTPMiddleware.php index e3d20a8..4de5720 100644 --- a/src/TestSessionHTTPMiddleware.php +++ b/src/TestSessionHTTPMiddleware.php @@ -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