mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-30 13:43:00 +00:00
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:
parent
fa4c69fb29
commit
bae3424fb2
2 changed files with 6 additions and 6 deletions
cake/tests/cases/libs/model
|
@ -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`');
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue