aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CacheTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/CacheTest.php b/tests/CacheTest.php
index 042fc7a1..f01cfc4b 100644
--- a/tests/CacheTest.php
+++ b/tests/CacheTest.php
@@ -6,6 +6,18 @@ use PHPUnit\Framework\TestCase;
class CacheTest extends TestCase
{
+ public function testConfig()
+ {
+ $sut = new \FileCache(['path' => '/tmp/']);
+ $this->assertSame(['path' => '/tmp/', 'enable_purge' => true], $sut->getConfig());
+
+ $sut = new \FileCache(['path' => '/', 'enable_purge' => false]);
+ $this->assertSame(['path' => '/', 'enable_purge' => false], $sut->getConfig());
+
+ $sut = new \FileCache(['path' => '/tmp', 'enable_purge' => true]);
+ $this->assertSame(['path' => '/tmp/', 'enable_purge' => true], $sut->getConfig());
+ }
+
public function testFileCache()
{
$temporaryFolder = sprintf('%s/rss_bridge_%s/', sys_get_temp_dir(), create_random_string());