HandlerStack::create($mock)]); $service = new ApplicationInformationService($client, app(Cache::class)); self::assertEquals($latestVersion, $service->getLatestVersionNumber()); self::assertSame($latestVersion, cache()->get('latestKoelVersion')); } }