Fix cachefiles being generated with "

Cache files with SQLite should not contain "

Fixes #2323
This commit is contained in:
mark_story 2011-11-30 21:49:18 -05:00
parent 65b87af6c0
commit 49708ec837
2 changed files with 8 additions and 1 deletions

View file

@ -262,6 +262,10 @@ class SqliteTest extends CakeTestCase {
public function testDescribe() {
$this->loadFixtures('User');
$Model = new Model(array('name' => 'User', 'ds' => 'test', 'table' => 'users'));
$this->Dbo->cacheSources = true;
Configure::write('Cache.disable', false);
$result = $this->Dbo->describe($Model);
$expected = array(
'id' => array(
@ -300,6 +304,9 @@ class SqliteTest extends CakeTestCase {
$result = $this->Dbo->describe($Model->useTable);
$this->assertEquals($expected, $result);
$result = Cache::read('test_users', '_cake_model_');
$this->assertEquals($expected, $result);
}
/**