Skip to content

Commit

Permalink
Add failing test for #3930
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 27, 2013
1 parent c28cde4 commit 76aab0a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php
Expand Up @@ -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
*
Expand Down

0 comments on commit 76aab0a

Please sign in to comment.