diff options
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 |