diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-05-13 20:14:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 20:14:31 +0200 |
commit | 85758a4f7011cf6ec3c24d4f500129504b910767 (patch) | |
tree | cd7bd5e6c943110affeaddbf5f96655f4479fb19 /tests/Core/Controller/ContactsMenuControllerTest.php | |
parent | 20a648ed95bb6e7e795d2c87caffaa37554b0d8f (diff) | |
parent | 232322fe062031d5fe5b5297ca60b22bc1da1d30 (diff) | |
download | nextcloud-server-85758a4f7011cf6ec3c24d4f500129504b910767.tar.gz nextcloud-server-85758a4f7011cf6ec3c24d4f500129504b910767.zip |
Merge pull request #31662 from nextcloud/modernize-contactmenu
Diffstat (limited to 'tests/Core/Controller/ContactsMenuControllerTest.php')
-rw-r--r-- | tests/Core/Controller/ContactsMenuControllerTest.php | 15 |
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() { |