From bfc27d151ffd0b5b686f5c8c30e7e8b168b113fe Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 31 Oct 2021 05:35:40 +0000 Subject: [PATCH] Fix test --- tests/src/Util/Emailer/MailBuilderTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/Util/Emailer/MailBuilderTest.php b/tests/src/Util/Emailer/MailBuilderTest.php index 83c22d7ec..af80d1aff 100644 --- a/tests/src/Util/Emailer/MailBuilderTest.php +++ b/tests/src/Util/Emailer/MailBuilderTest.php @@ -24,7 +24,7 @@ namespace Friendica\Test\src\Util\Emailer; use Friendica\App\BaseURL; use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\L10n; -use Friendica\Network\HTTPException\InternalServerErrorException; +use Friendica\Network\HTTPException\UnprocessableEntityException; use Friendica\Object\EMail\IEmail; use Friendica\Test\MockedTest; use Friendica\Test\Util\SampleMailBuilder; @@ -133,7 +133,7 @@ class MailBuilderTest extends MockedTest */ public function testBuilderWithEmptyMail() { - $this->expectException(InternalServerErrorException::class); + $this->expectException(UnprocessableEntityException::class); $this->expectExceptionMessage("Recipient address is missing."); $builder = new SampleMailBuilder($this->l10n, $this->baseUrl, $this->config, new NullLogger()); @@ -146,7 +146,7 @@ class MailBuilderTest extends MockedTest */ public function testBuilderWithEmptySender() { - $this->expectException(InternalServerErrorException::class); + $this->expectException(UnprocessableEntityException::class); $this->expectExceptionMessage("Sender address or name is missing."); $builder = new SampleMailBuilder($this->l10n, $this->baseUrl, $this->config, new NullLogger());