mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 05:18:40 +00:00
cleanup data after test
This commit is contained in:
parent
a5b67c20e6
commit
8ddf17e42a
|
|
@ -39,6 +39,11 @@ class MemCachedTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->cache = new MemCached($GLOBALS['CONFIG']['cache']['memcached']);
|
$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
|
* @testdox The memcached connection has the expected default values after initialization
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
* @covers phpOMS\DataStorage\Cache\Connection\MemCached<extended>
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,11 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->cache = new RedisCache($GLOBALS['CONFIG']['cache']['redis']);
|
$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
|
* @testdox The redis cache connection has the expected default values after initialization
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user