Skip to content

Commit 2b3534f

Browse files
committed
Fix case
1 parent d20d255 commit 2b3534f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
uses: shivammathur/setup-php@v2
116116
with:
117117
php-version: ${{ matrix.php-versions }}
118-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, ldap, mbstring, openssl, pcre, spl, xml
118+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, ldap, mbstring, openssl, pcre, spl, xml, zip
119119
tools: composer
120120
ini-values: error_reporting=E_ALL
121121
coverage: none

src/Controller/CAS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function setAuthSource(Auth\Source $authSource): void
8080
*/
8181
public function linkback(Request $request): RunnableResponse
8282
{
83-
if (!$request->query->has('StateId')) {
83+
if (!$request->query->has('stateId')) {
8484
throw new Error\BadRequest('Missing StateId parameter.');
8585
}
8686

tests/src/Controller/CASTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function setUp(): void
6262

6363

6464
/**
65-
* Test that request without StateId results in a BadRequest-error
65+
* Test that request without stateId results in a BadRequest-error
6666
*/
6767
public function testNoStateId(): void
6868
{
@@ -74,7 +74,7 @@ public function testNoStateId(): void
7474
$c = new Controller\CAS($this->config);
7575

7676
$this->expectException(Error\BadRequest::class);
77-
$this->expectExceptionMessage("BADREQUEST('%REASON%' => 'Missing StateId parameter.')");
77+
$this->expectExceptionMessage("BADREQUEST('%REASON%' => 'Missing stateId parameter.')");
7878

7979
$c->linkback($request);
8080
}
@@ -88,7 +88,7 @@ public function testNoState(): void
8888
$request = Request::create(
8989
'/linkback',
9090
'GET',
91-
['StateId' => 'abc123'],
91+
['stateId' => 'abc123'],
9292
);
9393

9494
$c = new Controller\CAS($this->config);
@@ -107,7 +107,7 @@ public function testNoTicket(): void
107107
$request = Request::create(
108108
'/linkback',
109109
'GET',
110-
['StateId' => 'abc123'],
110+
['stateId' => 'abc123'],
111111
);
112112

113113
$c = new Controller\CAS($this->config);
@@ -135,7 +135,7 @@ public function testUnknownAuthSource(): void
135135
'/linkback',
136136
'GET',
137137
[
138-
'StateId' => 'abc123',
138+
'stateId' => 'abc123',
139139
'ticket' => 'abc123',
140140
],
141141
);
@@ -164,7 +164,7 @@ public function testNormalOperation(): void
164164
'/linkback',
165165
'GET',
166166
[
167-
'StateId' => 'abc123',
167+
'stateId' => 'abc123',
168168
'ticket' => 'abc123',
169169
],
170170
);

0 commit comments

Comments
 (0)