fixing questionable test cases

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7522 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-08-27 11:17:54 +00:00
parent fa4c69fb29
commit bae3424fb2
2 changed files with 6 additions and 6 deletions
cake/tests/cases/libs/model

View file

@ -1195,7 +1195,7 @@ class DboSourceTest extends CakeTestCase {
$config = array_merge($this->__config, array('driver' => 'test'));
$test =& ConnectionManager::create('quoteTest', $config);
$this->Model =& new Article2(array('name' => 'Article', 'ds' => 'quoteTest'));
$this->Model =& new Article2(array('alias' => 'Article', 'ds' => 'quoteTest'));
$this->Model->setDataSource('quoteTest');
$this->assertEqual($this->Model->escapeField(), '`Article`.`id`');

View file

@ -656,7 +656,7 @@ class ModelTest extends CakeTestCase {
$expected = 'TestAlias';
$this->assertEqual($result, $expected);
$TestModel =& new TestAlias(array('alias' => 'AnotherTest'));
$TestModel =& new Test(array('alias' => 'AnotherTest'));
$result = $TestModel->alias;
$expected = 'AnotherTest';
$this->assertEqual($result, $expected);