‪TYPO3CMS  ‪main
FakeValidSpoolFixture.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Symfony\Component\Mailer\Envelope;
21 use Symfony\Component\Mailer\SentMessage;
22 use Symfony\Component\Mailer\Transport\TransportInterface;
23 use Symfony\Component\Mime\RawMessage;
25 
30 {
31  private array ‪$settings;
32 
33  public function ‪__construct(array ‪$settings)
34  {
35  $this->settings = ‪$settings;
36  }
37 
38  public function ‪getSettings(): array
39  {
40  return ‪$this->settings;
41  }
42 
43  public function ‪send(RawMessage $message, Envelope $envelope = null): ?SentMessage
44  {
45  // Don't do anything
46  return null;
47  }
48 
49  public function ‪flushQueue(TransportInterface $transport): int
50  {
51  return 1;
52  }
53 
54  public function ‪__toString(): string
55  {
56  return '';
57  }
58 }
‪TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures
Definition: FakeFileSpoolFixture.php:18
‪TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures\FakeValidSpoolFixture\getSettings
‪getSettings()
Definition: FakeValidSpoolFixture.php:38
‪TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures\FakeValidSpoolFixture\flushQueue
‪flushQueue(TransportInterface $transport)
Definition: FakeValidSpoolFixture.php:49
‪TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures\FakeValidSpoolFixture\send
‪send(RawMessage $message, Envelope $envelope=null)
Definition: FakeValidSpoolFixture.php:43
‪TYPO3\CMS\Core\Mail\DelayedTransportInterface
Definition: DelayedTransportInterface.php:26
‪TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures\FakeValidSpoolFixture\$settings
‪array $settings
Definition: FakeValidSpoolFixture.php:31
‪TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures\FakeValidSpoolFixture
Definition: FakeValidSpoolFixture.php:30
‪TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures\FakeValidSpoolFixture\__toString
‪__toString()
Definition: FakeValidSpoolFixture.php:54
‪TYPO3\CMS\Core\Tests\Unit\Mail\Fixtures\FakeValidSpoolFixture\__construct
‪__construct(array $settings)
Definition: FakeValidSpoolFixture.php:33