Skip to content

Commit

Permalink
adding change to DboSource test that was not committed in [8267]
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8275 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
gwoo committed Aug 2, 2009
1 parent 3f46bf9 commit 07d1ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/model/datasources/dbo_source.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3395,14 +3395,14 @@ function testBuildIndex() {
'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);
}
/**
Expand Down

0 comments on commit 07d1ecd

Please sign in to comment.