27 lines
738 B
PHP
27 lines
738 B
PHP
<?php
|
|
|
|
namespace App\Process\Tester;
|
|
|
|
use App\Channels\Mail\MailboxReader;
|
|
|
|
/**
|
|
* The mailbox of a tester run: it cannot be read. Incoming mails of a scenario are fed in directly as PortalMail.
|
|
*/
|
|
final class SandboxMailboxReader extends MailboxReader
|
|
{
|
|
public function fetch(array $senders): array
|
|
{
|
|
throw SandboxViolation::record('imap', 'Postfachabruf ist im Prozess-Tester nicht erlaubt.');
|
|
}
|
|
|
|
public function fetchAll(): array
|
|
{
|
|
throw SandboxViolation::record('imap', 'Postfachabruf ist im Prozess-Tester nicht erlaubt.');
|
|
}
|
|
|
|
public function probe(array $config): int
|
|
{
|
|
throw SandboxViolation::record('imap', 'Postfachprüfung ist im Prozess-Tester nicht erlaubt.');
|
|
}
|
|
}
|