diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-10 17:06:22 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-10 17:06:27 +0200 |
commit | db545b430a513e7fda3fba5859972b6c550958b5 (patch) | |
tree | 581622a85ab84b214c7c75c4996d2321e2d92571 /tests/unit/utility | |
parent | 47954580d994611883167bfb6cb4bb18837bbb1c (diff) |
add proxy settings to config
Diffstat (limited to 'tests/unit/utility')
-rw-r--r-- | tests/unit/utility/ConfigTest.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/unit/utility/ConfigTest.php b/tests/unit/utility/ConfigTest.php index 8ef688844..d3f91b975 100644 --- a/tests/unit/utility/ConfigTest.php +++ b/tests/unit/utility/ConfigTest.php @@ -55,6 +55,9 @@ class ConfigFetcherTest extends \OCA\News\Utility\TestUtility { $this->assertEquals(30*60, $this->config->getSimplePieCacheDuration()); $this->assertEquals(60, $this->config->getFeedFetcherTimeout()); $this->assertEquals(true, $this->config->getUseCronUpdates()); + $this->assertEquals(8080, $this->config->getProxyPort()); + $this->assertEquals('', $this->config->getProxyHost()); + $this->assertEquals('', $this->config->getProxyPassword()); } @@ -118,8 +121,14 @@ class ConfigFetcherTest extends \OCA\News\Utility\TestUtility { "autoPurgeCount = 3\n" . "simplePieCacheDuration = 1800\n" . "feedFetcherTimeout = 60\n" . - "useCronUpdates = true"; + "useCronUpdates = true\n" . + "proxyHost = yo man\n" . + "proxyPort = 12\n" . + "proxyPassword = this is a test"; $this->config->setAutoPurgeCount(3); + $this->config->setProxyHost("yo man"); + $this->config->setProxyPort(12); + $this->config->setProxyPassword("this is a test"); $this->fileSystem->expects($this->once()) ->method('file_put_contents') @@ -142,7 +151,10 @@ class ConfigFetcherTest extends \OCA\News\Utility\TestUtility { "autoPurgeCount = 200\n" . "simplePieCacheDuration = 1800\n" . "feedFetcherTimeout = 60\n" . - "useCronUpdates = false"; + "useCronUpdates = false\n" . + "proxyHost = \n" . + "proxyPort = 8080\n" . + "proxyPassword = "; $this->fileSystem->expects($this->once()) ->method('file_put_contents') |