summaryrefslogtreecommitdiff
path: root/tests/app/Services
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2023-02-05 20:58:21 +0000
committerGreg Roach <greg@subaqua.co.uk>2023-02-05 21:09:28 +0000
commit9aef375d1d8983f11b518f41ee6f490c9351cbb7 (patch)
treec82caf717f82ee18bf299a9509d870e9eb5a9980 /tests/app/Services
parent2ec6adfb1a72db53f622dde7c671ffffa02e7a2f (diff)
downloadwebtrees-9aef375d1d8983f11b518f41ee6f490c9351cbb7.tar.gz
webtrees-9aef375d1d8983f11b518f41ee6f490c9351cbb7.tar.bz2
webtrees-9aef375d1d8983f11b518f41ee6f490c9351cbb7.zip
Update tests to work with phpunit 10
Diffstat (limited to 'tests/app/Services')
-rw-r--r--tests/app/Services/EmailServiceTest.php2
-rw-r--r--tests/app/Services/GedcomEditServiceTest.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/app/Services/EmailServiceTest.php b/tests/app/Services/EmailServiceTest.php
index c9e3357ef4..37fd4ace81 100644
--- a/tests/app/Services/EmailServiceTest.php
+++ b/tests/app/Services/EmailServiceTest.php
@@ -83,7 +83,7 @@ U9VQQSQzY1oZMVX8i1m5WUTLPz2yLJIBQVdXqhMCQBGoiuSoSjafUhV7i1cEGpb88h5NBYZzWXGZ
*
* @return array<array<bool|string>>
*/
- public function emailProvider(): array
+ public static function emailProvider(): array
{
return [
// Valid emails
diff --git a/tests/app/Services/GedcomEditServiceTest.php b/tests/app/Services/GedcomEditServiceTest.php
index d3896b933c..b65dbf7c32 100644
--- a/tests/app/Services/GedcomEditServiceTest.php
+++ b/tests/app/Services/GedcomEditServiceTest.php
@@ -163,7 +163,7 @@ class GedcomEditServiceTest extends TestCase
* Data provider for new family facts tests
* @return array<array<string|array<string>>>
*/
- public function newFamilyFactsData(): array
+ public static function newFamilyFactsData(): array
{
return [
['', []],
@@ -177,7 +177,7 @@ class GedcomEditServiceTest extends TestCase
* Data provider for new inidvidual facts tests
* @return array<array<string|array<string>>>
*/
- public function newIndividualFactsData(): array
+ public static function newIndividualFactsData(): array
{
return [
['', 'F', ['1 NAME FOONAME'], ['INDI:SEX', 'INDI:NAME']],