Skip to content

Commit

Permalink
Test of ticket #323.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information
Juan Basso authored and markstory committed Feb 20, 2010
1 parent 06fc87f commit 416abed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cake/tests/cases/libs/model/datasources/dbo_source.test.php
Expand Up @@ -4033,6 +4033,10 @@ function testName() {
$result = $this->testDb->name('Function(Something.foo) AS x');
$expected = 'Function(`Something`.`foo`) AS `x`';
$this->assertEqual($result, $expected);

$result = $this->testDb->name('name-with-minus');
$expected = '`name-with-minus`';
$this->assertEqual($result, $expected);
}

/**
Expand Down

0 comments on commit 416abed

Please sign in to comment.