From 3561937816578a699008c010829142a01580e7bf Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 12 Jun 2025 18:34:54 +0200 Subject: chore: run rector on tests with new rule Signed-off-by: Robin Appelman --- tests/lib/AppFramework/Middleware/Security/CORSMiddlewareTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/lib/AppFramework/Middleware/Security/CORSMiddlewareTest.php') diff --git a/tests/lib/AppFramework/Middleware/Security/CORSMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/CORSMiddlewareTest.php index 5e923d5a564..2132a4d511f 100644 --- a/tests/lib/AppFramework/Middleware/Security/CORSMiddlewareTest.php +++ b/tests/lib/AppFramework/Middleware/Security/CORSMiddlewareTest.php @@ -269,7 +269,7 @@ class CORSMiddlewareTest extends \Test\TestCase { $this->session->expects($this->once()) ->method('logClientIn') ->with($this->equalTo('user'), $this->equalTo('pass')) - ->will($this->throwException(new PasswordLoginForbiddenException)); + ->willThrowException(new PasswordLoginForbiddenException); $this->reflector->reflect($this->controller, $method); $middleware = new CORSMiddleware($request, $this->reflector, $this->session, $this->throttler, $this->logger); -- cgit v1.2.3