mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Add failing test for #3930
This commit is contained in:
parent
c28cde4e56
commit
76aab0a635
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue