Fixing incorrect test case. Thanks to hiromi2424 for pointing out the mistake.

This commit is contained in:
mark_story 2011-03-14 21:13:24 -04:00
parent b9ec7da21d
commit 6fd5ff34a0
2 changed files with 2 additions and 2 deletions

View file

@ -315,7 +315,7 @@ class CacheTest extends CakeTestCase {
'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS) 'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)
), true); ), true);
Cache::config('test_trigger', array('engine' => 'TestAppCache')); Cache::config('test_trigger', array('engine' => 'TestAppCache', 'prefix' => ''));
try { try {
Cache::write('fail', 'value', 'test_trigger'); Cache::write('fail', 'value', 'test_trigger');
$this->fail('No exception thrown'); $this->fail('No exception thrown');

View file

@ -19,7 +19,7 @@
class TestAppCacheEngine extends CacheEngine { class TestAppCacheEngine extends CacheEngine {
public function write($key, $value, $duration) { public function write($key, $value, $duration) {
if ($key = 'fail') { if ($key == 'fail') {
return false; return false;
} }
} }