Skip to content

Commit 0f4ac62

Browse files
Merge branch '6.2' into 6.3
* 6.2: [Translation][Mailer] Convert `$this` calls to static ones in data providers [BC Break] Make data providers for abstract test cases static use TestCase suffix for abstract tests in Tests directories Fix Request locale property doc types [DependencyInjection] Fix autowire attribute with nullable parameters Bump absolute lowest dep to 4.4 remove not needed PHP version switch
2 parents 3905068 + ef4e9c7 commit 0f4ac62

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Tests/SmsapiTransportFactoryTest.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function createFactory(): SmsapiTransportFactory
2121
return new SmsapiTransportFactory();
2222
}
2323

24-
public function createProvider(): iterable
24+
public static function createProvider(): iterable
2525
{
2626
yield [
2727
'smsapi://host.test',
@@ -74,7 +74,7 @@ public function createProvider(): iterable
7474
];
7575
}
7676

77-
public function supportsProvider(): iterable
77+
public static function supportsProvider(): iterable
7878
{
7979
yield [true, 'smsapi://host'];
8080
yield [true, 'smsapi://host?fast=1'];
@@ -85,12 +85,17 @@ public function supportsProvider(): iterable
8585
yield [false, 'somethingElse://host?from=testFrom'];
8686
}
8787

88-
public function incompleteDsnProvider(): iterable
88+
public static function incompleteDsnProvider(): iterable
8989
{
9090
yield 'missing token' => ['smsapi://host.test?from=testFrom'];
9191
}
9292

93-
public function unsupportedSchemeProvider(): iterable
93+
public static function missingRequiredOptionProvider(): iterable
94+
{
95+
yield 'missing option: from' => ['smsapi://token@host'];
96+
}
97+
98+
public static function unsupportedSchemeProvider(): iterable
9499
{
95100
yield ['somethingElse://token@host?from=testFrom'];
96101
}

Tests/SmsapiTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function createClient(int $statusCode, string $content): HttpClientInterf
5656
return new MockHttpClient(new MockResponse($content, ['http_code' => $statusCode]));
5757
}
5858

59-
public function responseProvider(): iterable
59+
public static function responseProvider(): iterable
6060
{
6161
$responses = [
6262
['status' => 200, 'content' => '{"error":101,"message":"Authorization failed"}', 'errorMessage' => 'Unable to send the SMS: "Authorization failed".'],

0 commit comments

Comments
 (0)