Skip to content

Commit 9a378ab

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/LinkedInTransportTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@
1616
use Symfony\Component\Notifier\Exception\LogicException;
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\MessageOptionsInterface;
2120
use Symfony\Component\Notifier\Message\SmsMessage;
2221
use Symfony\Component\Notifier\Notification\Notification;
2322
use Symfony\Component\Notifier\Test\TransportTestCase;
24-
use Symfony\Component\Notifier\Tests\Fixtures\DummyHttpClient;
25-
use Symfony\Component\Notifier\Tests\Fixtures\DummyMessage;
23+
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
2624
use Symfony\Component\Notifier\Transport\TransportInterface;
2725
use Symfony\Contracts\HttpClient\HttpClientInterface;
2826
use Symfony\Contracts\HttpClient\ResponseInterface;
@@ -34,7 +32,7 @@ final class LinkedInTransportTest extends TransportTestCase
3432
*/
3533
public static function createTransport(HttpClientInterface $client = null): TransportInterface
3634
{
37-
return (new LinkedInTransport('AuthToken', 'AccountId', $client ?? new DummyHttpClient()))->setHost('host.test');
35+
return (new LinkedInTransport('AuthToken', 'AccountId', $client ?? new MockHttpClient()))->setHost('host.test');
3836
}
3937

4038
public static function toStringProvider(): iterable

0 commit comments

Comments
 (0)