remove obsolete use statements
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
847dfb0eb8
commit
35ba5ae2a0
|
@ -78,7 +78,7 @@ class BirthdayCalendarControllerTest extends TestCase {
|
||||||
->with('dav', 'generateBirthdayCalendar', 'yes');
|
->with('dav', 'generateBirthdayCalendar', 'yes');
|
||||||
|
|
||||||
$this->userManager->expects($this->once())
|
$this->userManager->expects($this->once())
|
||||||
->method('callForAllUsers')
|
->method('callForSeenUsers')
|
||||||
->will($this->returnCallback(function($closure) {
|
->will($this->returnCallback(function($closure) {
|
||||||
$user1 = $this->createMock(IUser::class);
|
$user1 = $this->createMock(IUser::class);
|
||||||
$user1->method('getUID')->will($this->returnValue('uid1'));
|
$user1->method('getUID')->will($this->returnValue('uid1'));
|
||||||
|
|
|
@ -76,7 +76,7 @@ class RegenerateBirthdayCalendarsTest extends TestCase {
|
||||||
->with('Adding background jobs to regenerate birthday calendar');
|
->with('Adding background jobs to regenerate birthday calendar');
|
||||||
|
|
||||||
$this->userManager->expects($this->once())
|
$this->userManager->expects($this->once())
|
||||||
->method('callForAllUsers')
|
->method('callForSeenUsers')
|
||||||
->will($this->returnCallback(function($closure) {
|
->will($this->returnCallback(function($closure) {
|
||||||
$user1 = $this->createMock(IUser::class);
|
$user1 = $this->createMock(IUser::class);
|
||||||
$user1->method('getUID')->will($this->returnValue('uid1'));
|
$user1->method('getUID')->will($this->returnValue('uid1'));
|
||||||
|
@ -128,10 +128,10 @@ class RegenerateBirthdayCalendarsTest extends TestCase {
|
||||||
->with('Repair step already executed');
|
->with('Repair step already executed');
|
||||||
|
|
||||||
$this->userManager->expects($this->never())
|
$this->userManager->expects($this->never())
|
||||||
->method('callForAllUsers');
|
->method('callForSeenUsers');
|
||||||
|
|
||||||
$this->migration->run($output);
|
$this->migration->run($output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,6 @@ namespace OC\User;
|
||||||
|
|
||||||
use OC\Cache\CappedMemoryCache;
|
use OC\Cache\CappedMemoryCache;
|
||||||
use OCP\IDBConnection;
|
use OCP\IDBConnection;
|
||||||
use OCP\ILogger;
|
|
||||||
use OCP\User\Backend\ABackend;
|
use OCP\User\Backend\ABackend;
|
||||||
use OCP\User\Backend\ICheckPasswordBackend;
|
use OCP\User\Backend\ICheckPasswordBackend;
|
||||||
use OCP\User\Backend\ICountUsersBackend;
|
use OCP\User\Backend\ICountUsersBackend;
|
||||||
|
@ -68,7 +67,6 @@ use OCP\User\Backend\IGetDisplayNameBackend;
|
||||||
use OCP\User\Backend\IGetHomeBackend;
|
use OCP\User\Backend\IGetHomeBackend;
|
||||||
use OCP\User\Backend\ISetDisplayNameBackend;
|
use OCP\User\Backend\ISetDisplayNameBackend;
|
||||||
use OCP\User\Backend\ISetPasswordBackend;
|
use OCP\User\Backend\ISetPasswordBackend;
|
||||||
use OCP\Util;
|
|
||||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||||
use Symfony\Component\EventDispatcher\GenericEvent;
|
use Symfony\Component\EventDispatcher\GenericEvent;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue