mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Fix Rest's ConfigProvider test
This commit is contained in:
parent
41e322fd47
commit
5bde273d59
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue