summaryrefslogtreecommitdiffstats
path: root/tests/Core
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-03-22 12:39:23 +0100
committerThomas Citharel <tcit@tcit.fr>2022-05-12 18:31:59 +0200
commit232322fe062031d5fe5b5297ca60b22bc1da1d30 (patch)
treea2591d9ed9caf669cbc7c16142a84b00f435df8f /tests/Core
parent32139610c5e11ee84c71cc1db3e58523f749aa27 (diff)
downloadnextcloud-server-232322fe062031d5fe5b5297ca60b22bc1da1d30.tar.gz
nextcloud-server-232322fe062031d5fe5b5297ca60b22bc1da1d30.zip
Modernize contacts menu
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'tests/Core')
-rw-r--r--tests/Core/Controller/ContactsMenuControllerTest.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/Core/Controller/ContactsMenuControllerTest.php b/tests/Core/Controller/ContactsMenuControllerTest.php
index a702a155860..0bed7b8e7a1 100644
--- a/tests/Core/Controller/ContactsMenuControllerTest.php
+++ b/tests/Core/Controller/ContactsMenuControllerTest.php
@@ -30,30 +30,27 @@ use OCP\Contacts\ContactsMenu\IEntry;
use OCP\IRequest;
use OCP\IUser;
use OCP\IUserSession;
+use PHPUnit\Framework\MockObject\MockObject;
use Test\TestCase;
class ContactsMenuControllerTest extends TestCase {
- /** @var IRequest|\PHPUnit\Framework\MockObject\MockObject */
- private $request;
-
- /** @var IUserSession|\PHPUnit\Framework\MockObject\MockObject */
+ /** @var IUserSession|MockObject */
private $userSession;
- /** @var Manager|\PHPUnit\Framework\MockObject\MockObject */
+ /** @var Manager|MockObject */
private $contactsManager;
- /** @var ContactsMenuController */
- private $controller;
+ private ContactsMenuController $controller;
protected function setUp(): void {
parent::setUp();
- $this->request = $this->createMock(IRequest::class);
+ $request = $this->createMock(IRequest::class);
$this->userSession = $this->createMock(IUserSession::class);
$this->contactsManager = $this->createMock(Manager::class);
- $this->controller = new ContactsMenuController($this->request, $this->userSession, $this->contactsManager);
+ $this->controller = new ContactsMenuController($request, $this->userSession, $this->contactsManager);
}
public function testIndex() {