From 6b82b4e4b9e1fb7a42a85e8bf466d45211f5fb5c Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 14 Aug 2023 17:17:57 +0200 Subject: [PATCH] add DummyMessage classes to Notifier bridges --- .../AllMySms/Tests/AllMySmsTransportTest.php | 2 +- .../AllMySms/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/AmazonSnsTransportTest.php | 2 +- .../AmazonSns/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/ClickatellTransportTest.php | 2 +- .../Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Discord/Tests/DiscordTransportTest.php | 2 +- .../Discord/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Esendex/Tests/EsendexTransportTest.php | 2 +- .../Esendex/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Bridge/Expo/Tests/ExpoTransportTest.php | 2 +- .../Expo/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/FakeChatEmailTransportTest.php | 2 +- .../Tests/FakeChatLoggerTransportTest.php | 2 +- .../FakeChat/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/FakeSmsEmailTransportTest.php | 2 +- .../Tests/FakeSmsLoggerTransportTest.php | 2 +- .../FakeSms/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Firebase/Tests/FirebaseTransportTest.php | 2 +- .../Firebase/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/FreeMobileTransportTest.php | 2 +- .../Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/GatewayApiTransportTest.php | 2 +- .../Gitter/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Gitter/Tests/GitterTransportTest.php | 2 +- .../Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/GoogleChatTransportTest.php | 2 +- .../Infobip/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Infobip/Tests/InfobipTransportTest.php | 2 +- .../Iqsms/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Bridge/Iqsms/Tests/IqsmsTransportTest.php | 2 +- .../LightSms/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../LightSms/Tests/LightSmsTransportTest.php | 2 +- .../LinkedIn/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../LinkedIn/Tests/LinkedInTransportTest.php | 2 +- .../Mailjet/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Mailjet/Tests/MailjetTransportTest.php | 2 +- .../Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/MattermostTransportTest.php | 2 +- .../Mercure/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Mercure/Tests/MercureTransportTest.php | 2 +- .../Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/MessageBirdTransportTest.php | 2 +- .../Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/MessageMediaTransportTest.php | 2 +- .../Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/MicrosoftTeamsTransportTest.php | 2 +- .../Mobyt/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Bridge/Mobyt/Tests/MobytTransportTest.php | 2 +- .../Nexmo/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Bridge/Nexmo/Tests/NexmoTransportTest.php | 2 +- .../Octopush/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Octopush/Tests/OctopushTransportTest.php | 2 +- .../OneSignal/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/OneSignalTransportTest.php | 2 +- .../OvhCloud/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../OvhCloud/Tests/OvhCloudTransportTest.php | 2 +- .../Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/RocketChatTransportTest.php | 2 +- .../Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/SendinblueTransportTest.php | 2 +- .../Sinch/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Bridge/Sinch/Tests/SinchTransportTest.php | 2 +- .../Slack/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Bridge/Slack/Tests/SlackTransportTest.php | 2 +- .../Sms77/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Bridge/Sms77/Tests/Sms77TransportTest.php | 2 +- .../SmsBiuras/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Tests/SmsBiurasTransportTest.php | 2 +- .../Smsapi/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Smsapi/Tests/SmsapiTransportTest.php | 2 +- .../Smsc/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Bridge/Smsc/Tests/SmscTransportTest.php | 2 +- .../SpotHit/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../SpotHit/Tests/SpotHitTransportTest.php | 2 +- .../Telegram/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Telegram/Tests/TelegramTransportTest.php | 2 +- .../Telnyx/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Telnyx/Tests/TelnyxTransportTest.php | 2 +- .../TurboSms/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../TurboSms/Tests/TurboSmsTransportTest.php | 2 +- .../Twilio/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Twilio/Tests/TwilioTransportTest.php | 2 +- .../Vonage/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Vonage/Tests/VonageTransportTest.php | 2 +- .../Yunpian/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Yunpian/Tests/YunpianTransportTest.php | 2 +- .../Zulip/Tests/Fixtures/DummyMessage.php | 41 +++++++++++++++++++ .../Bridge/Zulip/Tests/ZulipTransportTest.php | 2 +- 90 files changed, 1850 insertions(+), 46 deletions(-) create mode 100644 src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Discord/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Esendex/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Expo/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Firebase/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Gitter/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Infobip/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/LightSms/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Mercure/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Nexmo/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Octopush/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Sinch/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Slack/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Smsc/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Telegram/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Twilio/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Vonage/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/Fixtures/DummyMessage.php create mode 100644 src/Symfony/Component/Notifier/Bridge/Zulip/Tests/Fixtures/DummyMessage.php diff --git a/src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsTransportTest.php b/src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsTransportTest.php index 118860c772baa..eb6bbeb0af99b 100644 --- a/src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/AllMySmsTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\AllMySms\AllMySmsTransport; +use Symfony\Component\Notifier\Bridge\AllMySms\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..12ff065638c3b --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/AllMySms/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\AllMySms\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/AmazonSnsTransportTest.php b/src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/AmazonSnsTransportTest.php index 53c2711106f5b..be9a4cef541d3 100644 --- a/src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/AmazonSnsTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/AmazonSnsTransportTest.php @@ -16,11 +16,11 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\AmazonSns\AmazonSnsOptions; use Symfony\Component\Notifier\Bridge\AmazonSns\AmazonSnsTransport; +use Symfony\Component\Notifier\Bridge\AmazonSns\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Fixtures\TestOptions; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..07cc35a7e025f --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/AmazonSns/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\AmazonSns\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/ClickatellTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/ClickatellTransportTest.php index 376b890a27f60..fbfbbfa396a30 100644 --- a/src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/ClickatellTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/ClickatellTransportTest.php @@ -13,13 +13,13 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Clickatell\ClickatellTransport; +use Symfony\Component\Notifier\Bridge\Clickatell\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\MessageInterface; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..861a6f7d3f321 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Clickatell/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Clickatell\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportTest.php index 819d24bb45f27..f0fe0debcb369 100644 --- a/src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Discord/Tests/DiscordTransportTest.php @@ -13,12 +13,12 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Discord\DiscordTransport; +use Symfony\Component\Notifier\Bridge\Discord\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\LengthException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Discord/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Discord/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..f80c8e69b2133 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Discord/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Discord\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Esendex/Tests/EsendexTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Esendex/Tests/EsendexTransportTest.php index 7f30a2118efc6..e81d51d07109e 100644 --- a/src/Symfony/Component/Notifier/Bridge/Esendex/Tests/EsendexTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Esendex/Tests/EsendexTransportTest.php @@ -13,11 +13,11 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Esendex\EsendexTransport; +use Symfony\Component\Notifier\Bridge\Esendex\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Component\Uid\Uuid; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Esendex/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Esendex/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..5f2ecb5b59834 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Esendex/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Esendex\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Expo/Tests/ExpoTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Expo/Tests/ExpoTransportTest.php index 4694537cdbc8f..76ae5a4555577 100644 --- a/src/Symfony/Component/Notifier/Bridge/Expo/Tests/ExpoTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Expo/Tests/ExpoTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Expo\ExpoTransport; +use Symfony\Component\Notifier\Bridge\Expo\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\PushMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Expo/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Expo/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..eeac50eae006c --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Expo/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Expo\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatEmailTransportTest.php b/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatEmailTransportTest.php index a0048e84baa0b..3d5df51eecdf6 100644 --- a/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatEmailTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatEmailTransportTest.php @@ -14,12 +14,12 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Mime\Email; use Symfony\Component\Notifier\Bridge\FakeChat\FakeChatEmailTransport; +use Symfony\Component\Notifier\Bridge\FakeChat\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Fixtures\TestOptions; use Symfony\Component\Notifier\Tests\Mailer\DummyMailer; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatLoggerTransportTest.php b/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatLoggerTransportTest.php index 9e8cb4b2a391a..a918e48ca4fd8 100644 --- a/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatLoggerTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/FakeChatLoggerTransportTest.php @@ -15,11 +15,11 @@ use Psr\Log\NullLogger; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\FakeChat\FakeChatLoggerTransport; +use Symfony\Component\Notifier\Bridge\FakeChat\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Fixtures\TestOptions; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..d74f89334ce70 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/FakeChat/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\FakeChat\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsEmailTransportTest.php b/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsEmailTransportTest.php index 1539b71778b45..208756c0e7fcf 100644 --- a/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsEmailTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsEmailTransportTest.php @@ -14,11 +14,11 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Mime\Email; use Symfony\Component\Notifier\Bridge\FakeSms\FakeSmsEmailTransport; +use Symfony\Component\Notifier\Bridge\FakeSms\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; use Symfony\Component\Notifier\Tests\Mailer\DummyMailer; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsLoggerTransportTest.php b/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsLoggerTransportTest.php index 1f5707d230073..b886ec1c06624 100644 --- a/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsLoggerTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/FakeSmsLoggerTransportTest.php @@ -15,10 +15,10 @@ use Psr\Log\NullLogger; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\FakeSms\FakeSmsLoggerTransport; +use Symfony\Component\Notifier\Bridge\FakeSms\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..5fc5612e7bb72 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/FakeSms/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\FakeSms\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Firebase/Tests/FirebaseTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Firebase/Tests/FirebaseTransportTest.php index 338dd8696414f..330a55a8a98c5 100644 --- a/src/Symfony/Component/Notifier/Bridge/Firebase/Tests/FirebaseTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Firebase/Tests/FirebaseTransportTest.php @@ -15,11 +15,11 @@ use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Component\Notifier\Bridge\Firebase\FirebaseOptions; use Symfony\Component\Notifier\Bridge\Firebase\FirebaseTransport; +use Symfony\Component\Notifier\Bridge\Firebase\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Firebase/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Firebase/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..b8f5d59b104a0 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Firebase/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Firebase\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..02f1120fa8a47 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\FreeMobile\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php b/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php index bdaa6152ca252..e26734ad1f8c9 100644 --- a/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\FreeMobile\FreeMobileTransport; +use Symfony\Component\Notifier\Bridge\FreeMobile\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..8ddbece8e8321 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\GatewayApi\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiTransportTest.php b/src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiTransportTest.php index fd5225f0b0d2d..ae682c20d4623 100644 --- a/src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/GatewayApi/Tests/GatewayApiTransportTest.php @@ -13,11 +13,11 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\GatewayApi\GatewayApiTransport; +use Symfony\Component\Notifier\Bridge\GatewayApi\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Gitter/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Gitter/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..1f8396d10cda2 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Gitter/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Gitter\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Gitter/Tests/GitterTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Gitter/Tests/GitterTransportTest.php index a59fdeca5f670..1cd576fb24e8b 100644 --- a/src/Symfony/Component/Notifier/Bridge/Gitter/Tests/GitterTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Gitter/Tests/GitterTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Gitter\GitterTransport; +use Symfony\Component\Notifier\Bridge\Gitter\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..1473e7b71166b --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\GoogleChat\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatTransportTest.php b/src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatTransportTest.php index 9c532eef3faba..dbb1128be93f5 100644 --- a/src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/GoogleChat/Tests/GoogleChatTransportTest.php @@ -14,6 +14,7 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\GoogleChat\GoogleChatOptions; use Symfony\Component\Notifier\Bridge\GoogleChat\GoogleChatTransport; +use Symfony\Component\Notifier\Bridge\GoogleChat\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; @@ -21,7 +22,6 @@ use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Infobip/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Infobip/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..e3c4dd8842db4 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Infobip/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Infobip\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Infobip/Tests/InfobipTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Infobip/Tests/InfobipTransportTest.php index e60c8bbc88931..0b9bf5d93e856 100644 --- a/src/Symfony/Component/Notifier/Bridge/Infobip/Tests/InfobipTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Infobip/Tests/InfobipTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Infobip\InfobipTransport; +use Symfony\Component\Notifier\Bridge\Infobip\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..33939234efc21 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Iqsms\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/IqsmsTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/IqsmsTransportTest.php index a5049c77794b0..58e077c738f8b 100644 --- a/src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/IqsmsTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Iqsms/Tests/IqsmsTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Iqsms\IqsmsTransport; +use Symfony\Component\Notifier\Bridge\Iqsms\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/LightSms/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/LightSms/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..f0d3cba46c925 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/LightSms/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\LightSms\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportTest.php b/src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportTest.php index 26a906ab02d77..4b3176070125b 100644 --- a/src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\LightSms\LightSmsTransport; +use Symfony\Component\Notifier\Bridge\LightSms\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..2e7339ad7f0d8 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\LinkedIn\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php b/src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php index 810db1fc28849..26f958ef52b6c 100644 --- a/src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php @@ -13,6 +13,7 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\LinkedIn\LinkedInTransport; +use Symfony\Component\Notifier\Bridge\LinkedIn\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; @@ -20,7 +21,6 @@ use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..af97b81387392 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Mailjet\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/MailjetTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/MailjetTransportTest.php index 970286f8195bd..1c47b6b93ee0c 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/MailjetTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Mailjet/Tests/MailjetTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Mailjet\MailjetTransport; +use Symfony\Component\Notifier\Bridge\Mailjet\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..e6a879ff7df32 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Mattermost\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/MattermostTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/MattermostTransportTest.php index 0cca6e735e41e..a2e4464acad68 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/MattermostTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Mattermost/Tests/MattermostTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Mattermost\MattermostTransport; +use Symfony\Component\Notifier\Bridge\Mattermost\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Mercure/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Mercure/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..da351f5c67758 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Mercure/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Mercure\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Mercure/Tests/MercureTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Mercure/Tests/MercureTransportTest.php index 7ea005c47636a..d51a67b3330ec 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mercure/Tests/MercureTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Mercure/Tests/MercureTransportTest.php @@ -20,13 +20,13 @@ use Symfony\Component\Notifier\Bridge\Mercure\MercureOptions; use Symfony\Component\Notifier\Bridge\Mercure\MercureTransport; use Symfony\Component\Notifier\Bridge\Mercure\Tests\Fixtures\DummyHub; +use Symfony\Component\Notifier\Bridge\Mercure\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\RuntimeException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\MessageOptionsInterface; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..8080215a53f39 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\MessageBird\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/MessageBirdTransportTest.php b/src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/MessageBirdTransportTest.php index b7a6a054ef709..4d74e14b5afc8 100644 --- a/src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/MessageBirdTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/MessageBird/Tests/MessageBirdTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\MessageBird\MessageBirdTransport; +use Symfony\Component\Notifier\Bridge\MessageBird\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..9ae00154598c1 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\MessageMedia\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaTransportTest.php b/src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaTransportTest.php index aff1b64c938cd..d8bd47e40c8d6 100644 --- a/src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/MessageMedia/Tests/MessageMediaTransportTest.php @@ -13,12 +13,12 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\MessageMedia\MessageMediaTransport; +use Symfony\Component\Notifier\Bridge\MessageMedia\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Exception\TransportExceptionInterface; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..15fcc158fd0b9 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\MicrosoftTeams\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsTransportTest.php b/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsTransportTest.php index 0864c0717fcc1..19ae7f4a46894 100644 --- a/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Tests/MicrosoftTeamsTransportTest.php @@ -15,12 +15,12 @@ use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTeamsOptions; use Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTeamsTransport; +use Symfony\Component\Notifier\Bridge\MicrosoftTeams\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..84b4d3cb0f2d7 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Mobyt\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/MobytTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/MobytTransportTest.php index 4d54df6387d36..d997966d32097 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/MobytTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Mobyt/Tests/MobytTransportTest.php @@ -14,10 +14,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Mobyt\MobytOptions; use Symfony\Component\Notifier\Bridge\Mobyt\MobytTransport; +use Symfony\Component\Notifier\Bridge\Mobyt\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Nexmo/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Nexmo/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..70434bc200bda --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Nexmo/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Nexmo\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Nexmo/Tests/NexmoTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Nexmo/Tests/NexmoTransportTest.php index bb0fe4c552e4e..19fd421b6b15f 100644 --- a/src/Symfony/Component/Notifier/Bridge/Nexmo/Tests/NexmoTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Nexmo/Tests/NexmoTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransport; +use Symfony\Component\Notifier\Bridge\Nexmo\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Octopush/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Octopush/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..156905a5a7eef --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Octopush/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Octopush\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Octopush/Tests/OctopushTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Octopush/Tests/OctopushTransportTest.php index c24cd9f272bd7..4e16533c7f3ea 100644 --- a/src/Symfony/Component/Notifier/Bridge/Octopush/Tests/OctopushTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Octopush/Tests/OctopushTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Octopush\OctopushTransport; +use Symfony\Component\Notifier\Bridge\Octopush\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..285359b81aa8b --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\OneSignal\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalTransportTest.php b/src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalTransportTest.php index f0d88e7383b65..3fb9819deaf6d 100644 --- a/src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/OneSignal/Tests/OneSignalTransportTest.php @@ -14,13 +14,13 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\OneSignal\OneSignalOptions; use Symfony\Component\Notifier\Bridge\OneSignal\OneSignalTransport; +use Symfony\Component\Notifier\Bridge\OneSignal\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\PushMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..b95f30f820422 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\OvhCloud\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/OvhCloudTransportTest.php b/src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/OvhCloudTransportTest.php index b36cdd0557771..8a91bf76c4c67 100644 --- a/src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/OvhCloudTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/OvhCloud/Tests/OvhCloudTransportTest.php @@ -14,11 +14,11 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Component\Notifier\Bridge\OvhCloud\OvhCloudTransport; +use Symfony\Component\Notifier\Bridge\OvhCloud\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..ebd68be32ff64 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\RocketChat\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/RocketChatTransportTest.php b/src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/RocketChatTransportTest.php index 9be71200444ab..9d7f971b20d89 100644 --- a/src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/RocketChatTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/RocketChat/Tests/RocketChatTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\RocketChat\RocketChatTransport; +use Symfony\Component\Notifier\Bridge\RocketChat\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..18caf2c20df1b --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Sendinblue\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/SendinblueTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/SendinblueTransportTest.php index 13dcd1ec14783..fe1ca2a193ec1 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/SendinblueTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Sendinblue/Tests/SendinblueTransportTest.php @@ -13,11 +13,11 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Sendinblue\SendinblueTransport; +use Symfony\Component\Notifier\Bridge\Sendinblue\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Sinch/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Sinch/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..afcec67732ca6 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Sinch/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Sinch\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Sinch/Tests/SinchTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Sinch/Tests/SinchTransportTest.php index 4940bb71986e6..413fa80dede13 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sinch/Tests/SinchTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Sinch/Tests/SinchTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Sinch\SinchTransport; +use Symfony\Component\Notifier\Bridge\Sinch\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Slack/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Slack/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..8a71b2e0a0454 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Slack/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Slack\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php index 2a82a6303ce3c..3d51304357d66 100644 --- a/src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php @@ -14,6 +14,7 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Slack\SlackOptions; use Symfony\Component\Notifier\Bridge\Slack\SlackTransport; +use Symfony\Component\Notifier\Bridge\Slack\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Exception\TransportException; @@ -22,7 +23,6 @@ use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..85bed0e401750 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Sms77\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportTest.php b/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportTest.php index c028df2b12be5..8474bd3a61394 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Sms77\Sms77Transport; +use Symfony\Component\Notifier\Bridge\Sms77\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..c51485edd170d --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\SmsBiuras\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportTest.php b/src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportTest.php index 5bec5cd016453..f038c2ae16591 100644 --- a/src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/SmsBiuras/Tests/SmsBiurasTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\SmsBiuras\SmsBiurasTransport; +use Symfony\Component\Notifier\Bridge\SmsBiuras\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..5e0e494c5b639 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Smsapi\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/SmsapiTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/SmsapiTransportTest.php index 2e50676ac40d4..b054cb90b0d2c 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/SmsapiTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/SmsapiTransportTest.php @@ -14,11 +14,11 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\MockResponse; use Symfony\Component\Notifier\Bridge\Smsapi\SmsapiTransport; +use Symfony\Component\Notifier\Bridge\Smsapi\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Smsc/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Smsc/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..08b89793624bc --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Smsc/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Smsc\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Smsc/Tests/SmscTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Smsc/Tests/SmscTransportTest.php index 382b6b2a8767c..738238b5b9fe3 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsc/Tests/SmscTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Smsc/Tests/SmscTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Smsc\SmscTransport; +use Symfony\Component\Notifier\Bridge\Smsc\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..c9fafaaf47fe6 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\SpotHit\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/SpotHitTransportTest.php b/src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/SpotHitTransportTest.php index e3e60fe3c7083..aeaf871655097 100644 --- a/src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/SpotHitTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/SpotHit/Tests/SpotHitTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\SpotHit\SpotHitTransport; +use Symfony\Component\Notifier\Bridge\SpotHit\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..b874f79df6764 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Telegram\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php index 1ad87524ea452..f23e10e44d5ab 100644 --- a/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php @@ -14,11 +14,11 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Telegram\TelegramOptions; use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransport; +use Symfony\Component\Notifier\Bridge\Telegram\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Exception\TransportException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..9f16ef138b8c0 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Telnyx\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportTest.php index 5a0e4f75bc122..e78010012cb4a 100644 --- a/src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportTest.php @@ -13,10 +13,10 @@ use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Telnyx\TelnyxTransport; +use Symfony\Component\Notifier\Bridge\Telnyx\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..7be621a6240c3 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\TurboSms\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/TurboSmsTransportTest.php b/src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/TurboSmsTransportTest.php index 1206ce02b0979..0b03511b7010f 100644 --- a/src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/TurboSmsTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/TurboSms/Tests/TurboSmsTransportTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Notifier\Bridge\TurboSms\Tests; use Symfony\Component\HttpClient\MockHttpClient; +use Symfony\Component\Notifier\Bridge\TurboSms\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Bridge\TurboSms\TurboSmsTransport; use Symfony\Component\Notifier\Exception\LengthException; use Symfony\Component\Notifier\Exception\TransportException; @@ -19,7 +20,6 @@ use Symfony\Component\Notifier\Message\SentMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..4bf38dae5fff4 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Twilio\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportTest.php index e48e41f4d4040..ec609525de665 100644 --- a/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportTest.php @@ -12,12 +12,12 @@ namespace Symfony\Component\Notifier\Bridge\Twilio\Tests; use Symfony\Component\HttpClient\MockHttpClient; +use Symfony\Component\Notifier\Bridge\Twilio\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransport; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; use Symfony\Contracts\HttpClient\ResponseInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Vonage/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Vonage/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..80333288128ef --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Vonage/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Vonage\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Vonage/Tests/VonageTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Vonage/Tests/VonageTransportTest.php index f2b403fc80e68..5403ff0b68cf5 100644 --- a/src/Symfony/Component/Notifier/Bridge/Vonage/Tests/VonageTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Vonage/Tests/VonageTransportTest.php @@ -12,11 +12,11 @@ namespace Symfony\Component\Notifier\Bridge\Vonage\Tests; use Symfony\Component\HttpClient\MockHttpClient; +use Symfony\Component\Notifier\Bridge\Vonage\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Bridge\Vonage\VonageTransport; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..3f4e0578fdfbd --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Yunpian\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/YunpianTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/YunpianTransportTest.php index de1acba8189b8..80c318009dac4 100644 --- a/src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/YunpianTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Yunpian/Tests/YunpianTransportTest.php @@ -12,11 +12,11 @@ namespace Symfony\Component\Notifier\Bridge\Yunpian\Tests; use Symfony\Component\HttpClient\MockHttpClient; +use Symfony\Component\Notifier\Bridge\Yunpian\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Bridge\Yunpian\YunpianTransport; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; diff --git a/src/Symfony/Component/Notifier/Bridge/Zulip/Tests/Fixtures/DummyMessage.php b/src/Symfony/Component/Notifier/Bridge/Zulip/Tests/Fixtures/DummyMessage.php new file mode 100644 index 0000000000000..f6852df1bc2c4 --- /dev/null +++ b/src/Symfony/Component/Notifier/Bridge/Zulip/Tests/Fixtures/DummyMessage.php @@ -0,0 +1,41 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Notifier\Bridge\Zulip\Tests\Fixtures; + +use Symfony\Component\Notifier\Message\MessageInterface; +use Symfony\Component\Notifier\Message\MessageOptionsInterface; + +/** + * @author Jan Schädlich + */ +class DummyMessage implements MessageInterface +{ + public function getRecipientId(): ?string + { + return 'recipient_id'; + } + + public function getSubject(): string + { + return 'subject'; + } + + public function getOptions(): ?MessageOptionsInterface + { + return null; + } + + public function getTransport(): ?string + { + return null; + } +} diff --git a/src/Symfony/Component/Notifier/Bridge/Zulip/Tests/ZulipTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Zulip/Tests/ZulipTransportTest.php index 9dcb7547c207c..43ba45ec6d224 100644 --- a/src/Symfony/Component/Notifier/Bridge/Zulip/Tests/ZulipTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Zulip/Tests/ZulipTransportTest.php @@ -12,11 +12,11 @@ namespace Symfony\Component\Notifier\Bridge\Zulip\Tests; use Symfony\Component\HttpClient\MockHttpClient; +use Symfony\Component\Notifier\Bridge\Zulip\Tests\Fixtures\DummyMessage; use Symfony\Component\Notifier\Bridge\Zulip\ZulipTransport; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\Test\TransportTestCase; -use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Contracts\HttpClient\HttpClientInterface;