mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing incorrect test case. Thanks to hiromi2424 for pointing out the mistake.
This commit is contained in:
parent
b9ec7da21d
commit
6fd5ff34a0
2 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue