From 2e0eef00ab54a3c79d0b4898d4c6306c2ab01f5c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 17 May 2025 11:46:26 +0200 Subject: test: Prepare files_external for PHPUnit10 Signed-off-by: Joas Schilling --- .../tests/Controller/AjaxControllerTest.php | 32 ++++++++-------------- 1 file changed, 12 insertions(+), 20 deletions(-) (limited to 'apps/files_external/tests/Controller/AjaxControllerTest.php') diff --git a/apps/files_external/tests/Controller/AjaxControllerTest.php b/apps/files_external/tests/Controller/AjaxControllerTest.php index 005e6e9714c..b1ea7a2b1b1 100644 --- a/apps/files_external/tests/Controller/AjaxControllerTest.php +++ b/apps/files_external/tests/Controller/AjaxControllerTest.php @@ -1,4 +1,6 @@ request = $this->createMock(IRequest::class); - $this->rsa = $this->getMockBuilder('\\OCA\\Files_External\\Lib\\Auth\\PublicKey\\RSA') - ->disableOriginalConstructor() - ->getMock(); - $this->globalAuth = $this->getMockBuilder('\\OCA\\Files_External\\Lib\\Auth\\Password\GlobalAuth') - ->disableOriginalConstructor() - ->getMock(); + $this->rsa = $this->createMock(RSA::class); + $this->globalAuth = $this->createMock(GlobalAuth::class); $this->userSession = $this->createMock(IUserSession::class); $this->groupManager = $this->createMock(IGroupManager::class); $this->l10n = $this->createMock(IL10N::class); -- cgit v1.2.3