This commit is contained in:
Michael 2021-10-31 05:35:40 +00:00
parent 3ca1cd3345
commit bfc27d151f

View File

@ -24,7 +24,7 @@ namespace Friendica\Test\src\Util\Emailer;
use Friendica\App\BaseURL; use Friendica\App\BaseURL;
use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\L10n; use Friendica\Core\L10n;
use Friendica\Network\HTTPException\InternalServerErrorException; use Friendica\Network\HTTPException\UnprocessableEntityException;
use Friendica\Object\EMail\IEmail; use Friendica\Object\EMail\IEmail;
use Friendica\Test\MockedTest; use Friendica\Test\MockedTest;
use Friendica\Test\Util\SampleMailBuilder; use Friendica\Test\Util\SampleMailBuilder;
@ -133,7 +133,7 @@ class MailBuilderTest extends MockedTest
*/ */
public function testBuilderWithEmptyMail() public function testBuilderWithEmptyMail()
{ {
$this->expectException(InternalServerErrorException::class); $this->expectException(UnprocessableEntityException::class);
$this->expectExceptionMessage("Recipient address is missing."); $this->expectExceptionMessage("Recipient address is missing.");
$builder = new SampleMailBuilder($this->l10n, $this->baseUrl, $this->config, new NullLogger()); $builder = new SampleMailBuilder($this->l10n, $this->baseUrl, $this->config, new NullLogger());
@ -146,7 +146,7 @@ class MailBuilderTest extends MockedTest
*/ */
public function testBuilderWithEmptySender() public function testBuilderWithEmptySender()
{ {
$this->expectException(InternalServerErrorException::class); $this->expectException(UnprocessableEntityException::class);
$this->expectExceptionMessage("Sender address or name is missing."); $this->expectExceptionMessage("Sender address or name is missing.");
$builder = new SampleMailBuilder($this->l10n, $this->baseUrl, $this->config, new NullLogger()); $builder = new SampleMailBuilder($this->l10n, $this->baseUrl, $this->config, new NullLogger());