diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-05 11:30:27 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-05 11:30:38 +0100 |
commit | 95530f62513a82c385d9378b4a59da57d74092d9 (patch) | |
tree | a4d17994548999b42e99371f381da8c256ee39bf /tests/unit/config/ConfigTest.php | |
parent | 57163ad25a7dc63abd8aff8663c185ddad398466 (diff) |
update picofeed, add max size setting, fix #642
Diffstat (limited to 'tests/unit/config/ConfigTest.php')
-rw-r--r-- | tests/unit/config/ConfigTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/config/ConfigTest.php b/tests/unit/config/ConfigTest.php index a2739de59..bdffeb0d1 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(1024*1024*100, $this->config->getMaxSize()); } @@ -129,6 +130,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase { $json = 'autoPurgeMinimumInterval = 60' . "\n" . 'autoPurgeCount = 3' . "\n" . 'maxRedirects = 10' . "\n" . + 'maxSize = 399' . "\n" . 'feedFetcherTimeout = 60' . "\n" . 'useCronUpdates = true'; $this->config->setAutoPurgeCount(3); @@ -136,6 +138,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase { $this->config->setProxyPort(12); $this->config->setProxyUser('this is a test'); $this->config->setProxyPassword('se'); + $this->config->setMaxSize(399); $this->fileSystem->expects($this->once()) ->method('file_put_contents') @@ -162,6 +165,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase { $json = 'autoPurgeMinimumInterval = 60' . "\n" . 'autoPurgeCount = 200' . "\n" . 'maxRedirects = 10' . "\n" . + 'maxSize = 104857600' . "\n" . 'feedFetcherTimeout = 60' . "\n" . 'useCronUpdates = false'; |