зеркало из https://github.com/nextcloud/spreed.git
Rename included class from "ShareManager" to "IShareManager"
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
d8de63cc5f
Коммит
031d0957f1
|
@ -33,14 +33,14 @@ use OCP\IRequest;
|
|||
use OCP\IUser;
|
||||
use OCP\IUserManager;
|
||||
use OCP\Share;
|
||||
use OCP\Share\IManager as ShareManager;
|
||||
use OCP\Share\IManager as IShareManager;
|
||||
use OCP\Share\Exceptions\ShareNotFound;
|
||||
|
||||
class PublicShareAuthController extends OCSController {
|
||||
|
||||
/** @var IUserManager */
|
||||
private $userManager;
|
||||
/** @var ShareManager */
|
||||
/** @var IShareManager */
|
||||
private $shareManager;
|
||||
/** @var Manager */
|
||||
private $manager;
|
||||
|
@ -49,14 +49,14 @@ class PublicShareAuthController extends OCSController {
|
|||
* @param string $appName
|
||||
* @param IRequest $request
|
||||
* @param IUserManager $userManager
|
||||
* @param ShareManager $shareManager
|
||||
* @param IShareManager $shareManager
|
||||
* @param Manager $manager
|
||||
*/
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
IUserManager $userManager,
|
||||
ShareManager $shareManager,
|
||||
IShareManager $shareManager,
|
||||
Manager $manager
|
||||
) {
|
||||
parent::__construct($appName, $request);
|
||||
|
|
|
@ -35,7 +35,7 @@ use OCP\IUserManager;
|
|||
use OCP\L10N\IFactory;
|
||||
use OCP\Notification\INotification;
|
||||
use OCP\RichObjectStrings\Definitions;
|
||||
use OCP\Share\IManager as ShareManager;
|
||||
use OCP\Share\IManager as IShareManager;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
|
||||
class NotifierTest extends \Test\TestCase {
|
||||
|
@ -46,7 +46,7 @@ class NotifierTest extends \Test\TestCase {
|
|||
protected $url;
|
||||
/** @var IUserManager|\PHPUnit_Framework_MockObject_MockObject */
|
||||
protected $userManager;
|
||||
/** @var ShareManager|\PHPUnit_Framework_MockObject_MockObject */
|
||||
/** @var IShareManager|\PHPUnit_Framework_MockObject_MockObject */
|
||||
protected $shareManager;
|
||||
/** @var Manager|\PHPUnit_Framework_MockObject_MockObject */
|
||||
protected $manager;
|
||||
|
@ -65,7 +65,7 @@ class NotifierTest extends \Test\TestCase {
|
|||
$this->lFactory = $this->createMock(IFactory::class);
|
||||
$this->url = $this->createMock(IURLGenerator::class);
|
||||
$this->userManager = $this->createMock(IUserManager::class);
|
||||
$this->shareManager = $this->createMock(ShareManager::class);
|
||||
$this->shareManager = $this->createMock(IShareManager::class);
|
||||
$this->manager = $this->createMock(Manager::class);
|
||||
$this->commentsManager = $this->createMock(ICommentsManager::class);
|
||||
$this->messageParser = $this->createMock(MessageParser::class);
|
||||
|
|
Загрузка…
Ссылка в новой задаче