function CoderUpgrade6xTest::testUpgrade6xCache in Coder 6
Same name and namespace in other branches
- 6.2 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xCache()
File
- tests/
coder_6x.test, line 182
Class
Code
function testUpgrade6xCache() {
$this
->assertCoderFail(' cache_set(\'simple_cid\', \'cache\', $simple);');
$this
->assertCoderFail(' cache_set(\'simple_cid\', "cache", $simple);');
$this
->assertCoderFail(' cache_set(\'simple_cid\', $table, $simple);');
$this
->assertCoderFail(' cache_set(\'complex_cid\', $tbl, serialize($complex));');
$this
->assertCoderFail(' cache_set(\'complex_cid\', serialize($complex));');
$this
->assertCoderPass(' cache_set(\'simple_cid\', $simple);');
$this
->assertCoderPass(' cache_set(\'simple_cid\', $simple, "cache");');
$this
->assertCoderFail(' $complex = unserialize(cache_get(\'complex_cid\'));');
$this
->assertCoderPass(' $complex = cache_get(\'complex_cid\');');
}