Skip to content

Commit 18e3e72

Browse files
committed
Added phpdocs
1 parent 801c4fd commit 18e3e72

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

tests/src/Controller/Cas10ControllerTest.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ public static function queryParameterValues(): array
8888
];
8989
}
9090

91+
/**
92+
* @param array $params
93+
*
94+
* @return void
95+
* @throws Exception
96+
*/
9197
#[DataProvider('queryParameterValues')]
9298
public function testReturnBadRequestOnEmptyServiceOrTicket(array $params): void
9399
{
@@ -105,6 +111,10 @@ public function testReturnBadRequestOnEmptyServiceOrTicket(array $params): void
105111
$this->assertEquals("no\n\n", $response->getContent());
106112
}
107113

114+
/**
115+
* @return void
116+
* @throws Exception
117+
*/
108118
public function testReturn500OnDeleteTicketThatThrows(): void
109119
{
110120
$config = Configuration::loadFromArray($this->moduleConfig);
@@ -133,6 +143,10 @@ public function getTicket(string $ticketId): ?array
133143
$this->assertEquals("no\n\n", $response->getContent());
134144
}
135145

146+
/**
147+
* @return void
148+
* @throws Exception
149+
*/
136150
public function testReturnBadRequestOnTicketNotExist(): void
137151
{
138152
$config = Configuration::loadFromArray($this->moduleConfig);
@@ -153,6 +167,10 @@ public function testReturnBadRequestOnTicketNotExist(): void
153167
$this->assertEquals("no\n\n", $response->getContent());
154168
}
155169

170+
/**
171+
* @return void
172+
* @throws Exception
173+
*/
156174
public function testReturnBadRequestOnTicketExpired(): void
157175
{
158176
$config = Configuration::loadFromArray($this->moduleConfig);
@@ -175,6 +193,10 @@ public function testReturnBadRequestOnTicketExpired(): void
175193
$this->assertEquals("no\n\n", $response->getContent());
176194
}
177195

196+
/**
197+
* @return void
198+
* @throws Exception
199+
*/
178200
public function testReturnBadRequestOnTicketNotService(): void
179201
{
180202
$config = Configuration::loadFromArray($this->moduleConfig);
@@ -199,6 +221,10 @@ public function testReturnBadRequestOnTicketNotService(): void
199221
$this->assertEquals("no\n\n", $response->getContent());
200222
}
201223

224+
/**
225+
* @return void
226+
* @throws Exception
227+
*/
202228
public function testReturnBadRequestOnTicketMissingUsernameField(): void
203229
{
204230
$config = Configuration::loadFromArray($this->moduleConfig);
@@ -223,6 +249,10 @@ public function testReturnBadRequestOnTicketMissingUsernameField(): void
223249
$this->assertEquals("no\n\n", $response->getContent());
224250
}
225251

252+
/**
253+
* @return void
254+
* @throws Exception
255+
*/
226256
public function testReturnBadRequestOnTicketServiceQueryAndTicketMismatch(): void
227257
{
228258
$config = Configuration::loadFromArray($this->moduleConfig);
@@ -247,6 +277,10 @@ public function testReturnBadRequestOnTicketServiceQueryAndTicketMismatch(): voi
247277
$this->assertEquals("no\n\n", $response->getContent());
248278
}
249279

280+
/**
281+
* @return void
282+
* @throws Exception
283+
*/
250284
public function testReturnBadRequestOnTicketIssuedBySingleSignOnSession(): void
251285
{
252286
$config = Configuration::loadFromArray($this->moduleConfig);
@@ -271,6 +305,10 @@ public function testReturnBadRequestOnTicketIssuedBySingleSignOnSession(): void
271305
$this->assertEquals("no\n\n", $response->getContent());
272306
}
273307

308+
/**
309+
* @return void
310+
* @throws Exception
311+
*/
274312
public function testSuccessfullValidation(): void
275313
{
276314
$config = Configuration::loadFromArray($this->moduleConfig);

0 commit comments

Comments
 (0)