Skip to content

Commit

Permalink
fix(tests): Adjust FormsService constructor use
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Aug 6, 2024
1 parent 2b2500a commit ba50b71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Unit/Service/FormsServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function microtime(bool|float $asFloat = false) {
use OCA\Forms\Service\ConfigService;
use OCA\Forms\Service\FormsService;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Folder;
use OCP\Files\IMimeTypeDetector;
use OCP\Files\IRootFolder;
Expand Down Expand Up @@ -182,6 +183,7 @@ public function setUp(): void {
$this->storage,
$this->l10n,
$this->mimeTypeDetector,
\OCP\Server::get(IEventDispatcher::class),
);
}

Expand Down Expand Up @@ -656,6 +658,7 @@ public function testGetPermissions_NotLoggedIn() {
$this->storage,
$this->l10n,
$this->mimeTypeDetector,
\OCP\Server::get(IEventDispatcher::class),
);

$form = new Form();
Expand Down Expand Up @@ -896,6 +899,7 @@ public function testPublicCanSubmit() {
$this->storage,
$this->l10n,
$this->mimeTypeDetector,
\OCP\Server::get(IEventDispatcher::class),
);

$this->assertEquals(true, $formsService->canSubmit($form));
Expand Down Expand Up @@ -1008,6 +1012,7 @@ public function testHasUserAccess_NotLoggedIn() {
$this->storage,
$this->l10n,
$this->mimeTypeDetector,
\OCP\Server::get(IEventDispatcher::class),
);

$form = new Form();
Expand Down Expand Up @@ -1236,6 +1241,7 @@ public function testNotifyNewSubmission($shares, $shareNotifications) {
$this->storage,
$this->l10n,
$this->mimeTypeDetector,
\OCP\Server::get(IEventDispatcher::class),
])
->getMock();

Expand Down

0 comments on commit ba50b71

Please sign in to comment.