Skip to content

Commit 3a286ea

Browse files
committed
static data providers
1 parent a9334ff commit 3a286ea

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/public/LoginIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function testValidServiceUrl(string $serviceParam, string $ticketParam):
213213
$this->assertEquals($expectedResponse, $resp['body']);
214214
}
215215

216-
public function validServiceUrlProvider(): array
216+
public static function validServiceUrlProvider(): array
217217
{
218218
return [
219219
['service', 'ticket'],

tests/public/UtilsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testCheckServiceURL(string $service, bool $allowed): void
5050
/**
5151
* @return array
5252
*/
53-
public function checkServiceURLProvider(): array
53+
public static function checkServiceURLProvider(): array
5454
{
5555
return [
5656
['no-match', false],

tests/src/ServiceValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testOverridingServiceConfig(string $service, array $expectedConf
7070
/**
7171
* @return array
7272
*/
73-
public function overridingDataProvider(): array
73+
public static function overridingDataProvider(): array
7474
{
7575
// The expected configuration if no overrides occur
7676
$defaultConfig = [
@@ -168,7 +168,7 @@ public function testCheckServiceURL(string $service, bool $allowed): void
168168
/**
169169
* @return array
170170
*/
171-
public function checkServiceURLProvider(): array
171+
public static function checkServiceURLProvider(): array
172172
{
173173
return [
174174
['no-match', false],

tests/src/TicketValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function testUrlSanitization(string $serviceUrl, string $expectedSanitzed
140140
* Urls to test
141141
* @return array
142142
*/
143-
public function urlSanitizationProvider(): array
143+
public static function urlSanitizationProvider(): array
144144
{
145145
return [
146146
[

0 commit comments

Comments
 (0)