@@ -19,7 +19,6 @@ class AuthenticatorTest extends TestCase {
19
19
public function testConstructWithDefaultSessionNotStarted () {
20
20
self ::expectException (SessionNotStartedException::class);
21
21
new Authenticator (
22
- "example-app-id " ,
23
22
"test-key " ,
24
23
"/ "
25
24
);
@@ -28,7 +27,6 @@ public function testConstructWithDefaultSessionNotStarted() {
28
27
public function testConstructWithDefaultSession () {
29
28
$ _SESSION = [];
30
29
new Authenticator (
31
- "example-app-id " ,
32
30
"test-key " ,
33
31
"/ "
34
32
);
@@ -41,7 +39,6 @@ public function testConstructWithDefaultSession() {
41
39
public function testIsLoggedInFalseByDefault () {
42
40
$ _SESSION = [];
43
41
$ sut = new Authenticator (
44
- "example-app-id " ,
45
42
"test-key " ,
46
43
"/ "
47
44
);
@@ -60,7 +57,6 @@ public function testIsLoggedInTrueWhenSessionDataSet() {
60
57
];
61
58
62
59
$ sut = new Authenticator (
63
- "example-app-id " ,
64
60
"test-key " ,
65
61
"/ "
66
62
);
@@ -76,7 +72,6 @@ public function testLogoutClearsSession() {
76
72
$ redirectHandler = self ::createMock (RedirectHandler::class);
77
73
78
74
$ sut = new Authenticator (
79
- "example-app-id " ,
80
75
"test-key " ,
81
76
"/ " ,
82
77
AuthUri::DEFAULT_BASE_REMOTE_URI ,
@@ -101,7 +96,6 @@ public function testLogoutRedirectsToCurrentPath() {
101
96
));
102
97
103
98
$ sut = new Authenticator (
104
- "example-app-id " ,
105
99
"test-key " ,
106
100
$ currentPath ,
107
101
AuthUri::DEFAULT_BASE_REMOTE_URI ,
@@ -122,7 +116,6 @@ public function testLoginRedirects() {
122
116
));
123
117
124
118
$ sut = new Authenticator (
125
- "example-app-id " ,
126
119
"test-key " ,
127
120
"/ " ,
128
121
AuthUri::DEFAULT_BASE_REMOTE_URI ,
@@ -145,7 +138,6 @@ public function testLoginRedirectsLocalhost() {
145
138
));
146
139
147
140
$ sut = new Authenticator (
148
- "example-app-id " ,
149
141
"test-key " ,
150
142
"/ " ,
151
143
"http://localhost:8081 " ,
@@ -161,7 +153,6 @@ public function testLoginRedirectsWithCorrectQueryString() {
161
153
$ key = uniqid ("key- " );
162
154
$ currentPath = uniqid ("/path/ " );
163
155
164
- $ id = "example-app-id " ;
165
156
$ cipher = "example-cipher " ;
166
157
$ ivString = "example-iv " ;
167
158
@@ -176,7 +167,6 @@ public function testLoginRedirectsWithCorrectQueryString() {
176
167
->willReturn ($ iv );
177
168
178
169
$ expectedQueryParts = [
179
- AuthUri::QUERY_STRING_ID => $ id ,
180
170
AuthUri::QUERY_STRING_CIPHER => $ cipher ,
181
171
AuthUri::QUERY_STRING_INIT_VECTOR => $ ivString ,
182
172
AuthUri::QUERY_STRING_CURRENT_PATH => $ currentPath ,
@@ -191,7 +181,6 @@ public function testLoginRedirectsWithCorrectQueryString() {
191
181
));
192
182
193
183
$ sut = new Authenticator (
194
- $ id ,
195
184
$ key ,
196
185
$ currentPath ,
197
186
AuthUri::DEFAULT_BASE_REMOTE_URI ,
@@ -212,7 +201,6 @@ public function testLoginDoesNothingWhenAlreadyLoggedIn() {
212
201
->method ("redirect " );
213
202
214
203
$ sut = new Authenticator (
215
- "example-app-id " ,
216
204
"test-key " ,
217
205
"/ " ,
218
206
AuthUri::DEFAULT_BASE_REMOTE_URI ,
@@ -226,7 +214,6 @@ public function testLoginDoesNothingWhenAlreadyLoggedIn() {
226
214
public function testGetUuidThrowsExceptionWhenNotLoggedIn () {
227
215
$ _SESSION = [];
228
216
$ sut = new Authenticator (
229
- "example-app-id " ,
230
217
"test-key " ,
231
218
"/ "
232
219
);
@@ -248,7 +235,6 @@ public function testGetUuid() {
248
235
Authenticator::SESSION_KEY => $ sessionData ,
249
236
];
250
237
$ sut = new Authenticator (
251
- "example-app-id " ,
252
238
"test-key " ,
253
239
"/ "
254
240
);
@@ -258,7 +244,6 @@ public function testGetUuid() {
258
244
public function testGetEmailThrowsExceptionWhenNotLoggedIn () {
259
245
$ _SESSION = [];
260
246
$ sut = new Authenticator (
261
- "example-app-id " ,
262
247
"test-key " ,
263
248
"/ "
264
249
);
@@ -280,7 +265,6 @@ public function testGetEmail() {
280
265
Authenticator::SESSION_KEY => $ sessionData ,
281
266
];
282
267
$ sut = new Authenticator (
283
- "example-app-id " ,
284
268
"test-key " ,
285
269
"/ "
286
270
);
@@ -295,7 +279,6 @@ public function testCompleteAuthNotLoggedIn() {
295
279
$ _SESSION = [];
296
280
self ::expectException (NotLoggedInException::class);
297
281
new Authenticator (
298
- "example-app-id " ,
299
282
"test-key " ,
300
283
$ currentUri
301
284
);
@@ -328,7 +311,6 @@ public function testCompleteAuth() {
328
311
Authenticator::SESSION_KEY => $ sessionData ,
329
312
];
330
313
new Authenticator (
331
- "example-app-id " ,
332
314
"test-key " ,
333
315
$ currentUri ,
334
316
AuthUri::DEFAULT_BASE_REMOTE_URI ,
@@ -356,7 +338,6 @@ public function testCompleteAuthNotAffectedByQueryString() {
356
338
$ _SESSION = [];
357
339
358
340
new Authenticator (
359
- "example-app-id " ,
360
341
"test-key " ,
361
342
"/example-path?filter=something " ,
362
343
AuthUri::DEFAULT_BASE_REMOTE_URI ,
@@ -368,7 +349,6 @@ public function testCompleteAuthNotAffectedByQueryString() {
368
349
public function testGetAdminUri () {
369
350
$ _SESSION = [];
370
351
$ auth = new Authenticator (
371
- "example-app-id " ,
372
352
"test-key " ,
373
353
"/example-path " ,
374
354
AuthUri::DEFAULT_BASE_REMOTE_URI
@@ -383,7 +363,6 @@ public function testGetAdminUri() {
383
363
public function testGetAdminUriCustom () {
384
364
$ _SESSION = [];
385
365
$ auth = new Authenticator (
386
- "example-app-id " ,
387
366
"test-key " ,
388
367
"/example-path " ,
389
368
AuthUri::DEFAULT_BASE_REMOTE_URI
0 commit comments