Skip to content
Permalink
Browse files

Add failing test for #3930

  • Loading branch information...
markstory committed Jul 27, 2013
1 parent c28cde4 commit 76aab0a6356f2f6be3cff496391670b01802afe1
Showing with 17 additions and 0 deletions.
  1. +17 −0 lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php
@@ -255,6 +255,23 @@ public function testClearWithPrefixes() {
$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
*

0 comments on commit 76aab0a

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.