Skip to content

Commit 927ae76

Browse files
alexandre-dauboisnicolas-grekas
authored andcommitted
[Notifier] Replace tests dummy instances by already in place mocks
1 parent 05254b8 commit 927ae76

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/SmscTransportTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,20 @@
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;
19+
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
2120
use Symfony\Component\Notifier\Transport\TransportInterface;
2221
use Symfony\Contracts\HttpClient\HttpClientInterface;
2322

2423
final class SmscTransportTest extends TransportTestCase
2524
{
2625
public static function createTransport(HttpClientInterface $client = null): TransportInterface
2726
{
28-
return new SmscTransport('login', 'password', 'MyApp', $client ?? new DummyHttpClient());
27+
return new SmscTransport('login', 'password', 'MyApp', $client ?? new MockHttpClient());
2928
}
3029

3130
public static function toStringProvider(): iterable

0 commit comments

Comments
 (0)