Test of ticket #323.

Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
Juan Basso 2010-02-19 13:41:52 -02:00 committed by Mark Story
parent 06fc87fc2d
commit 416abed211

View file

@ -4033,6 +4033,10 @@ class DboSourceTest extends CakeTestCase {
$result = $this->testDb->name('Function(Something.foo) AS x'); $result = $this->testDb->name('Function(Something.foo) AS x');
$expected = 'Function(`Something`.`foo`) AS `x`'; $expected = 'Function(`Something`.`foo`) AS `x`';
$this->assertEqual($result, $expected); $this->assertEqual($result, $expected);
$result = $this->testDb->name('name-with-minus');
$expected = '`name-with-minus`';
$this->assertEqual($result, $expected);
} }
/** /**