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:
gwoo 2009-08-02 23:21:24 +00:00
parent 3f46bf9568
commit 07d1ecdf6d

View file

@ -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);
}
/**