diff --git a/tests/php/Publisher/FilesystemPublisherTest.php b/tests/php/Publisher/FilesystemPublisherTest.php index 73a9df27..c80514a5 100644 --- a/tests/php/Publisher/FilesystemPublisherTest.php +++ b/tests/php/Publisher/FilesystemPublisherTest.php @@ -341,7 +341,7 @@ public function testPathToURL($expected, $path): void ); } - public function providePathsToURL() + public static function providePathsToURL() { return [ ['http://example.com', 'index.html'], diff --git a/tests/php/Service/UrlBundleServiceTest.php b/tests/php/Service/UrlBundleServiceTest.php index 0fd0b794..b1738edd 100644 --- a/tests/php/Service/UrlBundleServiceTest.php +++ b/tests/php/Service/UrlBundleServiceTest.php @@ -93,7 +93,7 @@ public function testChunkSize(string $jobClass, int $chunkSize): void $this->assertEquals($chunkSize, $method->invoke($job)); } - public function jobClasses(): array + public static function jobClasses(): array { return [ [GenerateStaticCacheJob::class], @@ -101,7 +101,7 @@ public function jobClasses(): array ]; } - public function urlsPerJobCases(): array + public static function urlsPerJobCases(): array { return [ [ @@ -115,7 +115,7 @@ public function urlsPerJobCases(): array ]; } - public function chunkCases(): array + public static function chunkCases(): array { return [ [ @@ -183,7 +183,7 @@ public function testStripStageParam(string $url, string $expectedUrl): void $this->assertEquals($expectedUrl, $method->invoke($urlService, $url)); } - public function provideStripStageParamUrls(): array + public static function provideStripStageParamUrls(): array { return [ // Testing removal of stage=Stage, expect http to remain http