diff options
Diffstat (limited to 'apps/files_sharing/tests/SharesReminderJobTest.php')
-rw-r--r-- | apps/files_sharing/tests/SharesReminderJobTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/SharesReminderJobTest.php b/apps/files_sharing/tests/SharesReminderJobTest.php index 7a480fccb23..ce468e279ec 100644 --- a/apps/files_sharing/tests/SharesReminderJobTest.php +++ b/apps/files_sharing/tests/SharesReminderJobTest.php @@ -95,7 +95,7 @@ class SharesReminderJobTest extends \Test\TestCase { parent::tearDown(); } - public function dataSharesReminder() { + public static function dataSharesReminder() { $someMail = 'test@test.com'; $noExpirationDate = null; $today = new \DateTime(); @@ -144,7 +144,6 @@ class SharesReminderJobTest extends \Test\TestCase { } /** - * @dataProvider dataSharesReminder * * @param \DateTime|null $expirationDate Share expiration date * @param string $email Share with this email. If empty, the share is of type TYPE_USER and the sharee is user2 @@ -152,6 +151,7 @@ class SharesReminderJobTest extends \Test\TestCase { * @param int $permissions * @param bool $shouldBeReminded */ + #[\PHPUnit\Framework\Attributes\DataProvider('dataSharesReminder')] public function testSharesReminder( ?\DateTime $expirationDate, string $email, bool $isEmpty, int $permissions, bool $shouldBeReminded, ): void { |