Fix Rest's ConfigProvider test

This commit is contained in:
Alejandro Celaya 2023-10-20 09:42:48 +02:00
parent 41e322fd47
commit 5bde273d59
3 changed files with 3 additions and 2 deletions

View file

@ -12,7 +12,7 @@ enum DeviceType: string
public static function matchFromUserAgent(string $userAgent): ?self
{
$detect = new MobileDetect(userAgent: $userAgent); // @phpstan-ignore-line
$detect = new MobileDetect(userAgent: $userAgent);
return match (true) {
// $detect->is('iOS') && $detect->isTablet() => self::IOS, // TODO To detect iPad only

View file

@ -24,10 +24,11 @@ class ConfigProviderTest extends TestCase
{
$config = ($this->configProvider)();
self::assertCount(4, $config);
self::assertCount(5, $config);
self::assertArrayHasKey('dependencies', $config);
self::assertArrayHasKey('auth', $config);
self::assertArrayHasKey('entity_manager', $config);
self::assertArrayHasKey('access_logs', $config);
self::assertArrayHasKey(ConfigAbstractFactory::class, $config);
}