Permalink
Browse files

Merge pull request #583 from tPl0ch/2.2-cache-groups

Fixed failing tests for 2.2 cache groups fetaure.
  • Loading branch information...
2 parents cf2b6ac + ce8b10e commit 969b682ece745897c4a76df1198429815245717b @lorenzo lorenzo committed Mar 26, 2012
View
3 lib/Cake/Test/Case/Cache/CacheTest.php
@@ -215,7 +215,8 @@ public function testWritingWithConfig() {
'probability' => 100,
'engine' => 'File',
'isWindows' => DIRECTORY_SEPARATOR == '\\',
- 'mask' => 0664
+ 'mask' => 0664,
+ 'groups' => array()
);
$this->assertEquals($expected, Cache::settings('sessions'));
View
3 lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php
@@ -38,4 +38,7 @@ public function delete($key) {
public function clear($check) {
}
+
+ public function clearGroup($group) {
+ }
}
View
2 lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php
@@ -36,4 +36,6 @@ public function delete($key) {
public function clear($check) {
}
+ public function clearGroup($group) {
+ }
}
View
3 lib/Cake/Test/test_app/View/Posts/test_nocache_tags.ctp
@@ -43,6 +43,9 @@
echo 'Settings: <ul>';
foreach ($settings as $name => $value):
+ if (is_array($value)):
+ $value = join(',', $value);
+ endif;
echo '<li>' . $name . ': ' . $value . '</li>';
endforeach;
echo '</ul>';

0 comments on commit 969b682

Please sign in to comment.