Skip to content

Commit 58fea9e

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Notifier] Replace tests dummy instances by already in place mocks
2 parents eb2f9ce + 9a378ab commit 58fea9e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Tests/LinkedInTransportTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,19 @@
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;
26-
use Symfony\Component\Notifier\Transport\TransportInterface;
23+
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
2724
use Symfony\Contracts\HttpClient\HttpClientInterface;
2825
use Symfony\Contracts\HttpClient\ResponseInterface;
2926

3027
final class LinkedInTransportTest extends TransportTestCase
3128
{
3229
public static function createTransport(HttpClientInterface $client = null): LinkedInTransport
3330
{
34-
return (new LinkedInTransport('AuthToken', 'AccountId', $client ?? new DummyHttpClient()))->setHost('host.test');
31+
return (new LinkedInTransport('AuthToken', 'AccountId', $client ?? new MockHttpClient()))->setHost('host.test');
3532
}
3633

3734
public static function toStringProvider(): iterable

0 commit comments

Comments
 (0)