diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-09 09:27:23 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-09 09:27:23 +0200 |
commit | 6fa7d6e4db1a953aa87b47b74128465c7957ebf9 (patch) | |
tree | fa5d2dcf45388d7968f03e96ab3ec6fa4ea6a112 /tests/unit/utility/ConfigTest.php | |
parent | 8462bed7820cecc23a0e0d64aa50db7be92272d9 (diff) |
more code coverage
Diffstat (limited to 'tests/unit/utility/ConfigTest.php')
-rw-r--r-- | tests/unit/utility/ConfigTest.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/unit/utility/ConfigTest.php b/tests/unit/utility/ConfigTest.php index ad26035f5..613944eb2 100644 --- a/tests/unit/utility/ConfigTest.php +++ b/tests/unit/utility/ConfigTest.php @@ -182,4 +182,26 @@ class ConfigTest extends \PHPUnit_Framework_TestCase { $this->assertEquals('this is a test:se', $this->config->getProxyAuth()); } + + + public function testMinimumAutoPurgeInterval() { + $this->config->setAutoPurgeMinimumInterval(30); + $interval = $this->config->getAutoPurgeMinimumInterval(); + + $this->assertSame(60, $interval); + } + + public function testCacheDuration() { + $this->config->setSimplePieCacheDuration(21); + $duration = $this->config->getSimplePieCacheDuration(); + + $this->assertSame(21, $duration); + } + + public function testFeedFetcherTimeout() { + $this->config->setFeedFetcherTimeout(2); + $timout = $this->config->getFeedFetcherTimeout(); + + $this->assertSame(2, $timout); + } }
\ No newline at end of file |