summaryrefslogtreecommitdiffstats
path: root/tests/unit/config/ConfigTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-19 18:13:54 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-19 18:13:54 +0100
commit794120c0f6cc933e89782262cbb71efd668f8cb8 (patch)
treefd4dd568cfdb9525dd11e094ff52e33880ab4943 /tests/unit/config/ConfigTest.php
parentb6a4a8a29b37c8b3f7124285ae21e32bf06a8f5c (diff)
allow to change the explore service url
Diffstat (limited to 'tests/unit/config/ConfigTest.php')
-rw-r--r--tests/unit/config/ConfigTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/config/ConfigTest.php b/tests/unit/config/ConfigTest.php
index bdffeb0d1..5baeae3ba 100644
--- a/tests/unit/config/ConfigTest.php
+++ b/tests/unit/config/ConfigTest.php
@@ -50,6 +50,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase {
$this->assertEquals(null, $this->config->getProxyAuth());
$this->assertEquals('', $this->config->getProxyUser());
$this->assertEquals('', $this->config->getProxyPassword());
+ $this->assertEquals('', $this->config->getExploreUrl());
$this->assertEquals(1024*1024*100, $this->config->getMaxSize());
}
@@ -131,6 +132,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase {
'autoPurgeCount = 3' . "\n" .
'maxRedirects = 10' . "\n" .
'maxSize = 399' . "\n" .
+ 'exploreUrl = http://google.de' . "\n" .
'feedFetcherTimeout = 60' . "\n" .
'useCronUpdates = true';
$this->config->setAutoPurgeCount(3);
@@ -139,6 +141,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase {
$this->config->setProxyUser('this is a test');
$this->config->setProxyPassword('se');
$this->config->setMaxSize(399);
+ $this->config->setExploreUrl('http://google.de');
$this->fileSystem->expects($this->once())
->method('file_put_contents')
@@ -166,6 +169,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase {
'autoPurgeCount = 200' . "\n" .
'maxRedirects = 10' . "\n" .
'maxSize = 104857600' . "\n" .
+ 'exploreUrl = ' . "\n" .
'feedFetcherTimeout = 60' . "\n" .
'useCronUpdates = false';