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