Test update
This commit is contained in:
Родитель
68d17c8b34
Коммит
4a25fc8bce
|
@ -38,27 +38,39 @@ class PageControllerTest extends UnitTestCase {
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
$request = $this->getMockBuilder('OCP\IRequest')
|
$avatarManager = $this->getMockBuilder('OCP\IAvatarManager')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$userManager = $this->getMockBuilder('OCP\IUserManager')
|
$config = $this->getMockBuilder('OCP\IConfig')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$groupManager = $this->getMockBuilder('OCP\IGroupManager')
|
$groupManager = $this->getMockBuilder('OCP\IGroupManager')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$avatarManager = $this->getMockBuilder('OCP\IAvatarManager')
|
$l10n = $this->getMockBuilder('OCP\IL10N')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$logger = $this->getMockBuilder('OCP\ILogger')
|
$logger = $this->getMockBuilder('OCP\ILogger')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$l10n = $this->getMockBuilder('OCP\IL10N')
|
$request = $this->getMockBuilder('OCP\IRequest')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$urlGenerator = $this->getMockBuilder('OCP\IURLGenerator')
|
$urlGenerator = $this->getMockBuilder('OCP\IURLGenerator')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->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')
|
$commentMapper = $this->getMockBuilder('OCA\Polls\Db\CommentMapper')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
|
@ -77,19 +89,23 @@ class PageControllerTest extends UnitTestCase {
|
||||||
|
|
||||||
$this->controller = new PageController(
|
$this->controller = new PageController(
|
||||||
'polls',
|
'polls',
|
||||||
$request,
|
|
||||||
$userManager,
|
|
||||||
$groupManager,
|
|
||||||
$avatarManager,
|
$avatarManager,
|
||||||
$logger,
|
$config,
|
||||||
|
$groupManager,
|
||||||
$l10n,
|
$l10n,
|
||||||
|
$logger,
|
||||||
|
$request,
|
||||||
$urlGenerator,
|
$urlGenerator,
|
||||||
$this->userId,
|
$user,
|
||||||
|
$userManager,
|
||||||
|
$transFactory,
|
||||||
|
$mailer,
|
||||||
$commentMapper,
|
$commentMapper,
|
||||||
$optionsMapper,
|
$optionsMapper,
|
||||||
$eventMapper,
|
$eventMapper,
|
||||||
$notificationMapper,
|
$notificationMapper,
|
||||||
$votesMapper
|
$votesMapper
|
||||||
|
$this->userId,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче