aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Middleware/MiddlewareTest.php
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-04-18 20:55:55 +0200
committerGitHub <noreply@github.com>2023-04-18 20:55:55 +0200
commitbfaac51725065cc22b237b80ced237283eb84227 (patch)
tree8cec15155047fbb14cff539f72c6d22ab13273f6 /tests/lib/AppFramework/Middleware/MiddlewareTest.php
parentb6d9e1d1ccf7b154d39cf3b6720906ae8b1b96f5 (diff)
parent2c0cfd3772bd7fc9bcb90ec84b929133c3580a89 (diff)
downloadnextcloud-server-bfaac51725065cc22b237b80ced237283eb84227.tar.gz
nextcloud-server-bfaac51725065cc22b237b80ced237283eb84227.zip
Merge pull request #36343 from nextcloud/feat/app-framework/middleware-argument-types
feat(app-framework): Add native argument types for middleware
Diffstat (limited to 'tests/lib/AppFramework/Middleware/MiddlewareTest.php')
-rw-r--r--tests/lib/AppFramework/Middleware/MiddlewareTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/lib/AppFramework/Middleware/MiddlewareTest.php b/tests/lib/AppFramework/Middleware/MiddlewareTest.php
index f9d8926db7e..f9e775269d4 100644
--- a/tests/lib/AppFramework/Middleware/MiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/MiddlewareTest.php
@@ -70,27 +70,27 @@ class MiddlewareTest extends \Test\TestCase {
}
- public function testBeforeController() {
- $this->middleware->beforeController($this->controller, null);
+ public function testBeforeController(): void {
+ $this->middleware->beforeController($this->controller, '');
$this->assertNull(null);
}
- public function testAfterExceptionRaiseAgainWhenUnhandled() {
+ public function testAfterExceptionRaiseAgainWhenUnhandled(): void {
$this->expectException(\Exception::class);
- $this->middleware->afterException($this->controller, null, $this->exception);
+ $this->middleware->afterException($this->controller, '', $this->exception);
}
- public function testAfterControllerReturnResponseWhenUnhandled() {
- $response = $this->middleware->afterController($this->controller, null, $this->response);
+ public function testAfterControllerReturnResponseWhenUnhandled(): void {
+ $response = $this->middleware->afterController($this->controller, '', $this->response);
$this->assertEquals($this->response, $response);
}
- public function testBeforeOutputReturnOutputhenUnhandled() {
- $output = $this->middleware->beforeOutput($this->controller, null, 'test');
+ public function testBeforeOutputReturnOutputhenUnhandled(): void {
+ $output = $this->middleware->beforeOutput($this->controller, '', 'test');
$this->assertEquals('test', $output);
}