Skip to content

Commit 21a19f4

Browse files
committed
Remove unused param
1 parent 0e3aa57 commit 21a19f4

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
reportMixedIssues="false"
77
>
88
<projectFiles>
9+
<directory name="public" />
910
<directory name="src" />
10-
<directory name="www" />
1111
</projectFiles>
1212

1313
<issueHandlers>

tests/src/Controller/NegotiateControllerTest.php

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,9 @@ protected function setUp(): void
5353
*/
5454
public function testAuth(): void
5555
{
56-
$request = Request::create(
57-
'/auth',
58-
'GET'
59-
);
60-
6156
$c = new Controller\NegotiateController($this->config, $this->session);
6257

63-
$response = $c->auth($request);
58+
$response = $c->auth();
6459

6560
$this->assertInstanceOf(RunnableResponse::class, $response);
6661
$this->assertTrue($response->isSuccessful());
@@ -130,15 +125,10 @@ public function testErrorInvalidState(): void
130125
*/
131126
public function testEnable(): void
132127
{
133-
$request = Request::create(
134-
'/enable',
135-
'GET'
136-
);
137-
138128
$c = new Controller\NegotiateController($this->config, $this->session);
139129

140130
/** @var \SimpleSAML\XHTML\Template $response */
141-
$response = $c->enable($request);
131+
$response = $c->enable();
142132

143133
// Validate response
144134
$this->assertInstanceOf(Template::class, $response);
@@ -167,15 +157,10 @@ public function testEnable(): void
167157
*/
168158
public function testDisable(): void
169159
{
170-
$request = Request::create(
171-
'/disable',
172-
'GET'
173-
);
174-
175160
$c = new Controller\NegotiateController($this->config, $this->session);
176161

177162
/** @var \SimpleSAML\XHTML\Template $response */
178-
$response = $c->disable($request);
163+
$response = $c->disable();
179164

180165
// Validate response
181166
$this->assertInstanceOf(Template::class, $response);

0 commit comments

Comments
 (0)