mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
adding change to DboSource test that was not committed in [8267]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8275 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
3f46bf9568
commit
07d1ecdf6d
1 changed files with 2 additions and 2 deletions
|
@ -3395,14 +3395,14 @@ class DboSourceTest extends CakeTestCase {
|
|||
'MyIndex' => array('column' => 'id', 'unique' => true)
|
||||
);
|
||||
$result = $this->testDb->buildIndex($data);
|
||||
$expected = array('UNIQUE KEY MyIndex (`id`)');
|
||||
$expected = array('UNIQUE KEY `MyIndex` (`id`)');
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
$data = array(
|
||||
'MyIndex' => array('column' => array('id', 'name'), 'unique' => true)
|
||||
);
|
||||
$result = $this->testDb->buildIndex($data);
|
||||
$expected = array('UNIQUE KEY MyIndex (`id`, `name`)');
|
||||
$expected = array('UNIQUE KEY `MyIndex` (`id`, `name`)');
|
||||
$this->assertEqual($result, $expected);
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue