|
1 | 1 | <?php |
2 | 2 | /** |
3 | | - * Copyright © Magento, Inc. All rights reserved. |
| 3 | + * Copyright 2024 Adobe |
| 4 | + * All rights reserved. |
4 | 5 | * See COPYING.txt for license details. |
5 | 6 | */ |
6 | 7 | declare(strict_types=1); |
@@ -289,28 +290,28 @@ public function testFlushTokens(): void |
289 | 290 | * |
290 | 291 | * @return array |
291 | 292 | */ |
292 | | - public function detailedExceptionsForGetNextResponseProvider(): array |
| 293 | + public static function detailedExceptionsForGetNextResponseProvider(): array |
293 | 294 | { |
294 | 295 | return [ |
295 | 296 | [ |
296 | | - 'connection_exception_message' => 'Api Key is invalid', |
297 | | - 'thrown_exception_message' => 'Adobe API Key is invalid!', |
298 | | - 'thrown_exception' => AuthenticationException::class, |
| 297 | + 'connectionException' => 'Api Key is invalid', |
| 298 | + 'thrownException' => 'Adobe API Key is invalid!', |
| 299 | + 'exception' => AuthenticationException::class, |
299 | 300 | ], |
300 | 301 | [ |
301 | | - 'connection_exception_message' => 'Api Key is required', |
302 | | - 'thrown_exception_message' => 'Adobe Api Key is required!', |
303 | | - 'thrown_exception' => AuthenticationException::class, |
| 302 | + 'connectionException' => 'Api Key is required', |
| 303 | + 'thrownException' => 'Adobe Api Key is required!', |
| 304 | + 'exception' => AuthenticationException::class, |
304 | 305 | ], |
305 | 306 | [ |
306 | | - 'connection_exception_message' => 'Oauth token is not valid', |
307 | | - 'thrown_exception_message' => 'Adobe API login has expired!', |
308 | | - 'thrown_exception' => AuthorizationException::class, |
| 307 | + 'connectionException' => 'Oauth token is not valid', |
| 308 | + 'thrownException' => 'Adobe API login has expired!', |
| 309 | + 'exception' => AuthorizationException::class, |
309 | 310 | ], |
310 | 311 | [ |
311 | | - 'connection_exception_message' => 'Could not validate the oauth token', |
312 | | - 'thrown_exception_message' => 'Adobe API login has expired!', |
313 | | - 'thrown_exception' => AuthorizationException::class, |
| 312 | + 'connectionException' => 'Could not validate the oauth token', |
| 313 | + 'thrownException' => 'Adobe API login has expired!', |
| 314 | + 'exception' => AuthorizationException::class, |
314 | 315 | ], |
315 | 316 | ]; |
316 | 317 | } |
|
0 commit comments