createMock(HttpClientInterface::class); $configRepo = $this->createMock(SiteConfigRepository::class); $logger = $this->createMock(LoggerInterface::class); $configRepo->method('get')->willReturn(null); $gateway = new MellatGateway($httpClient, $configRepo, $logger, null, null, null); $this->assertFalse($gateway->isConfigured()); } }