From ae6fd72e757a3da2f8e6fc6e3b451ffd66d3f64d Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Wed, 8 Jan 2025 11:40:42 +0100 Subject: [PATCH] wip --- tests/Unit/Config/FetcherConfigTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Unit/Config/FetcherConfigTest.php b/tests/Unit/Config/FetcherConfigTest.php index 1152ab678..cee7f3fd5 100644 --- a/tests/Unit/Config/FetcherConfigTest.php +++ b/tests/Unit/Config/FetcherConfigTest.php @@ -136,10 +136,12 @@ public function testProxyPortPreserved() ->method('getAppVersion') ->willReturn('1.0'); - $this->sysconfig->expects($this->exactly(1)) + $this->sysconfig->expects($this->exactly(2)) ->method('getSystemValue') - ->with('proxy') - ->willReturn('http://192.168.178.1:80'); + ->willReturnMap([ + ['poxy', 'http://192.168.178.1:80'], + ['proxyuserpwd', null] + ]); $this->class = new FetcherConfig($this->config, $this->sysconfig, $this->appmanager, $this->logger);