Add failing test for #3930

This commit is contained in:
mark_story 2013-07-27 17:15:15 -04:00
parent c28cde4e56
commit 76aab0a635

View file

@ -255,6 +255,23 @@ class FileEngineTest extends CakeTestCase {
$FileTwo->clear(false);
}
/**
* Test that clear() also removes files with group tags.
*
* @return void
*/
public function testClearWithGroups() {
$engine = new FileEngine();
$engine->init(array(
'prefix' => 'cake_test_',
'duration' => DAY,
'groups' => array('short')
));
$engine->write('test_key', 'it works', DAY);
$engine->clear(false);
$this->assertFalse($engine->read('test_key'), 'Key should have been removed');
}
/**
* testKeyPath method
*