|
23 | 23 | use OxidEsales\GraphQL\Base\Service\Token as TokenService; |
24 | 24 | use OxidEsales\GraphQL\Base\Service\TokenAdministration as TokenAdministration; |
25 | 25 | use OxidEsales\GraphQL\Base\Tests\Unit\BaseTestCase; |
| 26 | +use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations; |
26 | 27 | use TheCodingMachine\GraphQLite\Types\ID; |
27 | 28 |
|
28 | 29 | //todo: tests do not do any assertions, fix it. |
| 30 | +#[AllowMockObjectsWithoutExpectations] |
29 | 31 | class TokenTest extends BaseTestCase |
30 | 32 | { |
31 | 33 | public function testTokensQueryWithDefaultFilters(): void |
@@ -123,11 +125,11 @@ public function testRefreshGivesStringValueOfNewToken(): void |
123 | 125 | } |
124 | 126 |
|
125 | 127 | private function getTokenController( |
126 | | - TokenAdministration $tokenAdministration = null, |
127 | | - Authentication $authentication = null, |
128 | | - Authorization $authorization = null, |
129 | | - TokenService $tokenService = null, |
130 | | - RefreshTokenServiceInterface $refreshTokenService = null, |
| 128 | + ?TokenAdministration $tokenAdministration = null, |
| 129 | + ?Authentication $authentication = null, |
| 130 | + ?Authorization $authorization = null, |
| 131 | + ?TokenService $tokenService = null, |
| 132 | + ?RefreshTokenServiceInterface $refreshTokenService = null, |
131 | 133 | ): TokenController { |
132 | 134 | return new TokenController( |
133 | 135 | tokenAdministration: $tokenAdministration ?? $this->createStub(TokenAdministration::class), |
|
0 commit comments