Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tests/stubs/NextcloudStubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,22 @@ public function getAppVersion(string $appId): string;
* @return array<int, string>
*/
public function getInstalledApps(): array;

/**
* Absolute path to an app's directory on disk.
*
* Signature mirrors OCP\App\IAppManager::getAppPath(). A stub that omits a
* method the production interface declares does not fail loudly: PHPUnit
* refuses to configure it ("Trying to configure method ... which cannot be
* configured because it does not exist"), so the test errors somewhere far
* from the omission, and reads as a broken test rather than a short stub.
*
* @param string $appId App identifier
* @param bool $ignoreCache Whether to bypass the path cache
*
* @return string
*/
public function getAppPath(string $appId, bool $ignoreCache = false): string;
}//end interface

namespace OCP\Notification;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Unit\Controller;
namespace OCA\Filinq\Tests\Unit\Controller;

use OCA\Filinq\Controller\SetupController;
use OCA\Filinq\Service\DemoDataService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Unit\Service;
namespace OCA\Filinq\Tests\Unit\Service;

use OCA\Filinq\Service\DemoDataService;
use OCP\App\IAppManager;
Expand Down
Loading