cleanup data after test

This commit is contained in:
Dennis Eichhorn 2019-12-07 21:58:52 +01:00
parent a5b67c20e6
commit 8ddf17e42a
2 changed files with 10 additions and 0 deletions

View File

@ -39,6 +39,11 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
$this->cache = new MemCached($GLOBALS['CONFIG']['cache']['memcached']);
}
protected function tearDown(): void
{
$this->cache->flushAll();
}
/**
* @testdox The memcached connection has the expected default values after initialization
* @covers phpOMS\DataStorage\Cache\Connection\MemCached<extended>

View File

@ -39,6 +39,11 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
$this->cache = new RedisCache($GLOBALS['CONFIG']['cache']['redis']);
}
protected function tearDown(): void
{
$this->cache->flushAll();
}
/**
* @testdox The redis cache connection has the expected default values after initialization
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache<extended>