Skip to content

Commit 85205fd

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Notifier] Replace tests dummy instances by already in place mocks
1 parent 75b8ed0 commit 85205fd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Tests/ZendeskTransportTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,19 @@
1111

1212
namespace Symfony\Component\Notifier\Bridge\Zendesk\Tests;
1313

14+
use Symfony\Component\HttpClient\MockHttpClient;
1415
use Symfony\Component\Notifier\Bridge\Zendesk\ZendeskOptions;
1516
use Symfony\Component\Notifier\Bridge\Zendesk\ZendeskTransport;
1617
use Symfony\Component\Notifier\Message\ChatMessage;
17-
use Symfony\Component\Notifier\Message\MessageInterface;
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;
22-
use Symfony\Component\Notifier\Transport\TransportInterface;
2320
use Symfony\Contracts\HttpClient\HttpClientInterface;
2421

2522
final class ZendeskTransportTest extends TransportTestCase
2623
{
2724
public static function createTransport(HttpClientInterface $client = null): ZendeskTransport
2825
{
29-
return (new ZendeskTransport('testEmail', 'testToken', $client ?? new DummyHttpClient()))->setHost('test.zendesk.com');
26+
return (new ZendeskTransport('testEmail', 'testToken', $client ?? new MockHttpClient()))->setHost('test.zendesk.com');
3027
}
3128

3229
public static function toStringProvider(): iterable

0 commit comments

Comments
 (0)