Use new function to get verified domains

It uses the overall status set by the shop instead of checking the records.

[MAILPOET-5832]
This commit is contained in:
Brezo Cordero
2024-01-16 14:34:39 -06:00
committed by Aschepikov
parent db9813a3aa
commit 78faadc126
4 changed files with 39 additions and 32 deletions

View File

@ -551,7 +551,7 @@ class ServicesTest extends \MailPoetTest {
$verifiedDomains = ['email.com'];
$senderDomainMock = $this->make(AuthorizedSenderDomainController::class, [
'getVerifiedSenderDomains' => Expected::once($verifiedDomains),
'getVerifiedSenderDomainsIgnoringCache' => Expected::once($verifiedDomains),
]);
$servicesEndpoint = $this->createServicesEndpointWithMocks([