Permalink
Browse files

Add failing test for #3930

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

0 comments on commit 76aab0a

Please sign in to comment.