Skip to content

Commit 2bafbdf

Browse files
alexandre-dauboisnicolas-grekas
authored andcommitted
[Notifier] Replace tests dummy instances by already in place mocks
1 parent 29a5708 commit 2bafbdf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/SmsapiTransportTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
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;
21+
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
2422
use Symfony\Component\Notifier\Transport\TransportInterface;
2523
use Symfony\Contracts\HttpClient\HttpClientInterface;
2624

@@ -31,7 +29,7 @@ final class SmsapiTransportTest extends TransportTestCase
3129
*/
3230
public static function createTransport(HttpClientInterface $client = null): TransportInterface
3331
{
34-
return (new SmsapiTransport('testToken', 'testFrom', $client ?? new DummyHttpClient()))->setHost('test.host');
32+
return (new SmsapiTransport('testToken', 'testFrom', $client ?? new MockHttpClient()))->setHost('test.host');
3533
}
3634

3735
public static function toStringProvider(): iterable

0 commit comments

Comments
 (0)