tests: Replace assertInternalType with proper method.

See https://github.com/sebastianbergmann/phpunit/issues/3369
This commit is contained in:
Pol Dellaiera
2022-01-04 16:20:49 +01:00
parent 06f8014b76
commit 6ebcd87508
6 changed files with 14 additions and 20 deletions

View File

@@ -48,7 +48,7 @@ final class TokenManagerTest extends KernelTestCase
$tokens = $tokenManager->generate($user, $expiration);
$this->assertInternalType('array', $tokens);
$this->assertIsArray($tokens);
$this->assertArrayHasKey('h', $tokens);
$this->assertArrayHasKey('t', $tokens);
$this->assertNotEmpty($tokens['h']);

View File

@@ -48,6 +48,6 @@ final class MenuComposerTest extends KernelTestCase
$routes = $this->menuComposer->getRoutesFor('dummy0');
$this->assertInternalType('array', $routes);
$this->assertIsArray($routes);
}
}