diff options
Diffstat (limited to 'apps/sharebymail/tests')
-rw-r--r-- | apps/sharebymail/tests/CapabilitiesTest.php | 33 | ||||
-rw-r--r-- | apps/sharebymail/tests/ShareByMailProviderTest.php | 4 |
2 files changed, 17 insertions, 20 deletions
diff --git a/apps/sharebymail/tests/CapabilitiesTest.php b/apps/sharebymail/tests/CapabilitiesTest.php index 0e3e74f5d2d..7327e679533 100644 --- a/apps/sharebymail/tests/CapabilitiesTest.php +++ b/apps/sharebymail/tests/CapabilitiesTest.php @@ -42,24 +42,23 @@ class CapabilitiesTest extends TestCase { ->willReturn(true); $capabilities = [ - 'files_sharing' => - [ - 'sharebymail' => - [ + 'files_sharing' + => [ + 'sharebymail' => [ + 'enabled' => true, + 'send_password_by_mail' => true, + 'upload_files_drop' => [ 'enabled' => true, - 'send_password_by_mail' => true, - 'upload_files_drop' => [ - 'enabled' => true, - ], - 'password' => [ - 'enabled' => true, - 'enforced' => false, - ], - 'expire_date' => [ - 'enabled' => true, - 'enforced' => false, - ], - ] + ], + 'password' => [ + 'enabled' => true, + 'enforced' => false, + ], + 'expire_date' => [ + 'enabled' => true, + 'enforced' => false, + ], + ] ] ]; diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php index f0a69b5cf7c..8f70516f12c 100644 --- a/apps/sharebymail/tests/ShareByMailProviderTest.php +++ b/apps/sharebymail/tests/ShareByMailProviderTest.php @@ -844,9 +844,7 @@ class ShareByMailProviderTest extends TestCase { ]; } - /** - * @dataProvider dataUpdateSendPassword - */ + #[\PHPUnit\Framework\Attributes\DataProvider('dataUpdateSendPassword')] public function testUpdateSendPassword(?string $plainTextPassword, string $originalPassword, string $newPassword, bool $originalSendPasswordByTalk, bool $newSendPasswordByTalk, bool $sendMail): void { $node = $this->createMock(File::class); $node->expects($this->any())->method('getName')->willReturn('filename'); |