use Exception;
use OC\Accounts\AccountManager;
+use OC\Authentication\Token\RemoteWipe;
use OC\Group\Manager;
use OCA\FederatedFileSharing\AppInfo\Application;
use OCA\FederatedFileSharing\FederatedShareProvider;
use OCP\L10N\IFactory;
use OCP\Security\ISecureRandom;
use OCP\UserInterface;
+use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit_Framework_MockObject_MockObject;
use Test\TestCase;
private $federatedFileSharingFactory;
/** @var ISecureRandom|\PHPUnit_Framework_MockObject_MockObject */
private $secureRandom;
+ /** @var RemoteWipe|MockObject */
+ private $remoteWipe;
protected function setUp() {
parent::setUp();
$this->newUserMailHelper = $this->createMock(NewUserMailHelper::class);
$this->federatedFileSharingFactory = $this->createMock(FederatedFileSharingFactory::class);
$this->secureRandom = $this->createMock(ISecureRandom::class);
+ $this->remoteWipe = $this->createMock(RemoteWipe::class);
$this->api = $this->getMockBuilder(UsersController::class)
->setConstructorArgs([
$this->l10nFactory,
$this->newUserMailHelper,
$this->federatedFileSharingFactory,
- $this->secureRandom
+ $this->secureRandom,
+ $this->remoteWipe,
])
->setMethods(['fillStorageInfo'])
->getMock();
$this->l10nFactory,
$this->newUserMailHelper,
$this->federatedFileSharingFactory,
- $this->secureRandom
+ $this->secureRandom,
+ $this->remoteWipe
])
->setMethods(['editUser'])
->getMock();
$this->l10nFactory,
$this->newUserMailHelper,
$this->federatedFileSharingFactory,
- $this->secureRandom
+ $this->secureRandom,
+ $this->remoteWipe,
])
->setMethods(['getUserData'])
->getMock();
$this->l10nFactory,
$this->newUserMailHelper,
$this->federatedFileSharingFactory,
- $this->secureRandom
+ $this->secureRandom,
+ $this->remoteWipe,
])
->setMethods(['getUserData'])
->getMock();