Skip to content

Commit 0aea286

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Notifier] Replace tests dummy instances by already in place mocks
2 parents 2317b7d + 2bafbdf commit 0aea286

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Tests/SmsapiTransportTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,16 @@
1616
use Symfony\Component\Notifier\Bridge\Smsapi\SmsapiTransport;
1717
use Symfony\Component\Notifier\Exception\TransportException;
1818
use Symfony\Component\Notifier\Message\ChatMessage;
19-
use Symfony\Component\Notifier\Message\MessageInterface;
2019
use Symfony\Component\Notifier\Message\SmsMessage;
2120
use Symfony\Component\Notifier\Test\TransportTestCase;
22-
use Symfony\Component\Notifier\Tests\Fixtures\DummyHttpClient;
23-
use Symfony\Component\Notifier\Tests\Fixtures\DummyMessage;
24-
use Symfony\Component\Notifier\Transport\TransportInterface;
21+
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
2522
use Symfony\Contracts\HttpClient\HttpClientInterface;
2623

2724
final class SmsapiTransportTest extends TransportTestCase
2825
{
2926
public static function createTransport(HttpClientInterface $client = null, bool $fast = false, bool $test = false): SmsapiTransport
3027
{
31-
return (new SmsapiTransport('testToken', 'testFrom', $client ?? new DummyHttpClient()))->setHost('test.host')->setFast($fast)->setTest($test);
28+
return (new SmsapiTransport('testToken', 'testFrom', $client ?? new MockHttpClient()))->setHost('test.host')->setFast($fast)->setTest($test);
3229
}
3330

3431
public static function toStringProvider(): iterable

0 commit comments

Comments
 (0)