mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 21:12:41 +00:00
Fix cachefiles being generated with "
Cache files with SQLite should not contain " Fixes #2323
This commit is contained in:
parent
65b87af6c0
commit
49708ec837
2 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue