Skip to content

Commit 2b62ff9

Browse files
committed
Fix tests
1 parent e7f3694 commit 2b62ff9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Symfony/Component/Notifier/Bridge/Smsapi/Tests/SmsapiTransportTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@
2323

2424
final class SmsapiTransportTest extends TransportTestCase
2525
{
26-
public function createTransport(HttpClientInterface $client = null, bool $fast = false, bool $test = false): SmsapiTransport
26+
public function createTransport(HttpClientInterface $client = null, string $from = '', bool $fast = false, bool $test = false): SmsapiTransport
2727
{
28-
return (new SmsapiTransport('testToken', 'testFrom', $client ?? $this->createMock(HttpClientInterface::class)))->setHost('test.host')->setFast($fast)->setTest($test);
28+
return (new SmsapiTransport('testToken', $from, $client ?? $this->createMock(HttpClientInterface::class)))->setHost('test.host')->setFast($fast)->setTest($test);
2929
}
3030

3131
public function toStringProvider(): iterable
3232
{
3333
yield ['smsapi://test.host', $this->createTransport()];
34-
yield ['smsapi://test.host?fast=1', $this->createTransport(null, true)];
35-
yield ['smsapi://test.host?test=1', $this->createTransport(null, false, true)];
36-
yield ['smsapi://test.host?fast=1&test=1', $this->createTransport(null, true, true)];
37-
yield ['smsapi://test.host?from=testFrom', $this->createTransport()];
38-
yield ['smsapi://test.host?from=testFrom&fast=1', $this->createTransport(null, true)];
39-
yield ['smsapi://test.host?from=testFrom&test=1', $this->createTransport(null, false, true)];
40-
yield ['smsapi://test.host?from=testFrom&fast=1&test=1', $this->createTransport(null, true, true)];
34+
yield ['smsapi://test.host?fast=1', $this->createTransport(null, '', true)];
35+
yield ['smsapi://test.host?test=1', $this->createTransport(null, '', false, true)];
36+
yield ['smsapi://test.host?fast=1&test=1', $this->createTransport(null, '', true, true)];
37+
yield ['smsapi://test.host?from=testFrom', $this->createTransport(null, 'testFrom')];
38+
yield ['smsapi://test.host?from=testFrom&fast=1', $this->createTransport(null, 'testFrom', true)];
39+
yield ['smsapi://test.host?from=testFrom&test=1', $this->createTransport(null, 'testFrom', false, true)];
40+
yield ['smsapi://test.host?from=testFrom&fast=1&test=1', $this->createTransport(null, 'testFrom', true, true)];
4141
}
4242

4343
public function supportedMessagesProvider(): iterable

0 commit comments

Comments
 (0)