This commit is contained in:
dartcafe 2018-11-16 06:46:32 +01:00
Родитель 68d17c8b34
Коммит 4a25fc8bce
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: CCE73CEF3035D3C8
1 изменённых файлов: 25 добавлений и 9 удалений

Просмотреть файл

@ -38,27 +38,39 @@ class PageControllerTest extends UnitTestCase {
* {@inheritDoc}
*/
public function setUp() {
$request = $this->getMockBuilder('OCP\IRequest')
$avatarManager = $this->getMockBuilder('OCP\IAvatarManager')
->disableOriginalConstructor()
->getMock();
$userManager = $this->getMockBuilder('OCP\IUserManager')
$config = $this->getMockBuilder('OCP\IConfig')
->disableOriginalConstructor()
->getMock();
$groupManager = $this->getMockBuilder('OCP\IGroupManager')
->disableOriginalConstructor()
->getMock();
$avatarManager = $this->getMockBuilder('OCP\IAvatarManager')
$l10n = $this->getMockBuilder('OCP\IL10N')
->disableOriginalConstructor()
->getMock();
$logger = $this->getMockBuilder('OCP\ILogger')
->disableOriginalConstructor()
->getMock();
$l10n = $this->getMockBuilder('OCP\IL10N')
$request = $this->getMockBuilder('OCP\IRequest')
->disableOriginalConstructor()
->getMock();
$urlGenerator = $this->getMockBuilder('OCP\IURLGenerator')
->disableOriginalConstructor()
->getMock();
$user = $this->getMockBuilder('OCP\IUser')
->disableOriginalConstructor()
->getMock();
$userManager = $this->getMockBuilder('OCP\IUserManager')
->disableOriginalConstructor()
->getMock();
$transFactory = $this->getMockBuilder('OCP\IL10N\IFactory')
->disableOriginalConstructor()
->getMock();
$mailer = $this->getMockBuilder('OCP\IMailer')
->disableOriginalConstructor()
->getMock();
$commentMapper = $this->getMockBuilder('OCA\Polls\Db\CommentMapper')
->disableOriginalConstructor()
->getMock();
@ -77,19 +89,23 @@ class PageControllerTest extends UnitTestCase {
$this->controller = new PageController(
'polls',
$request,
$userManager,
$groupManager,
$avatarManager,
$logger,
$config,
$groupManager,
$l10n,
$logger,
$request,
$urlGenerator,
$this->userId,
$user,
$userManager,
$transFactory,
$mailer,
$commentMapper,
$optionsMapper,
$eventMapper,
$notificationMapper,
$votesMapper
$this->userId,
);
}