Skip to content

Commit 5380eb3

Browse files
alexandre-dauboisnicolas-grekas
authored andcommitted
[Notifier] Replace tests dummy instances by already in place mocks
1 parent 3b40c3c commit 5380eb3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/GatewayApiTransportTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
use Symfony\Component\Notifier\Message\SentMessage;
1818
use Symfony\Component\Notifier\Message\SmsMessage;
1919
use Symfony\Component\Notifier\Test\TransportTestCase;
20-
use Symfony\Component\Notifier\Tests\Fixtures\DummyHttpClient;
21-
use Symfony\Component\Notifier\Tests\Fixtures\DummyMessage;
20+
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
2221
use Symfony\Component\Notifier\Transport\TransportInterface;
2322
use Symfony\Contracts\HttpClient\HttpClientInterface;
2423
use Symfony\Contracts\HttpClient\ResponseInterface;
@@ -34,7 +33,7 @@ final class GatewayApiTransportTest extends TransportTestCase
3433
*/
3534
public static function createTransport(HttpClientInterface $client = null): TransportInterface
3635
{
37-
return new GatewayApiTransport('authtoken', 'Symfony', $client ?? new DummyHttpClient());
36+
return new GatewayApiTransport('authtoken', 'Symfony', $client ?? new MockHttpClient());
3837
}
3938

4039
public static function toStringProvider(): iterable

0 commit comments

Comments
 (0)