diff options
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/Controller/ShareAPIControllerTest.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/tests/Controller/ShareControllerTest.php | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php index 4b52f7a2a36..5555aef1425 100644 --- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php @@ -4410,6 +4410,7 @@ class ShareAPIControllerTest extends TestCase { 'hide_download' => 0, 'can_edit' => false, 'can_delete' => false, + 'password_expiration_time' => null, ], $share, [], false ]; @@ -4459,6 +4460,7 @@ class ShareAPIControllerTest extends TestCase { 'hide_download' => 0, 'can_edit' => false, 'can_delete' => false, + 'password_expiration_time' => null, ], $share, [], false ]; diff --git a/apps/files_sharing/tests/Controller/ShareControllerTest.php b/apps/files_sharing/tests/Controller/ShareControllerTest.php index be2616f70fc..04d2a08b4e6 100644 --- a/apps/files_sharing/tests/Controller/ShareControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareControllerTest.php @@ -106,6 +106,8 @@ class ShareControllerTest extends \Test\TestCase { private $eventDispatcher; /** @var IL10N */ private $l10n; + /** @var ISecureRandom */ + private $secureRandom; /** @var Defaults|MockObject */ private $defaults; @@ -127,6 +129,7 @@ class ShareControllerTest extends \Test\TestCase { $this->accountManager = $this->createMock(IAccountManager::class); $this->eventDispatcher = $this->createMock(IEventDispatcher::class); $this->l10n = $this->createMock(IL10N::class); + $this->secureRandom = $this->createMock(ISecureRandom::class); $this->defaults = $this->createMock(Defaults::class); $this->shareController = new \OCA\Files_Sharing\Controller\ShareController( @@ -145,6 +148,7 @@ class ShareControllerTest extends \Test\TestCase { $this->accountManager, $this->eventDispatcher, $this->l10n, + $this->secureRandom, $this->defaults ); |