Skip to content

Commit 97e6c8b

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Notifier] Replace tests dummy instances by already in place mocks
2 parents eab7ead + 927ae76 commit 97e6c8b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Tests/SmscTransportTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,19 @@
1111

1212
namespace Symfony\Component\Notifier\Bridge\Smsc\Tests;
1313

14+
use Symfony\Component\HttpClient\MockHttpClient;
1415
use Symfony\Component\Notifier\Bridge\Smsc\SmscTransport;
1516
use Symfony\Component\Notifier\Message\ChatMessage;
16-
use Symfony\Component\Notifier\Message\MessageInterface;
1717
use Symfony\Component\Notifier\Message\SmsMessage;
1818
use Symfony\Component\Notifier\Test\TransportTestCase;
19-
use Symfony\Component\Notifier\Tests\Fixtures\DummyHttpClient;
20-
use Symfony\Component\Notifier\Tests\Fixtures\DummyMessage;
21-
use Symfony\Component\Notifier\Transport\TransportInterface;
19+
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
2220
use Symfony\Contracts\HttpClient\HttpClientInterface;
2321

2422
final class SmscTransportTest extends TransportTestCase
2523
{
2624
public static function createTransport(HttpClientInterface $client = null): SmscTransport
2725
{
28-
return new SmscTransport('login', 'password', 'MyApp', $client ?? new DummyHttpClient());
26+
return new SmscTransport('login', 'password', 'MyApp', $client ?? new MockHttpClient());
2927
}
3028

3129
public static function toStringProvider(): iterable

0 commit comments

Comments
 (0)