mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 10:36:16 +00:00
Correcting tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5893 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6591c8f79b
commit
7b914bab9f
3 changed files with 5 additions and 2 deletions
|
@ -694,6 +694,9 @@ class ModelTest extends CakeTestCase {
|
|||
$result = $Primary->getInsertID();
|
||||
$this->assertTrue(!empty($result));
|
||||
|
||||
$result = $Primary->field('primary_name', array('id' => $result));
|
||||
$this->assertEqual($result, 'Primary Name New');
|
||||
|
||||
$result = $Primary->findCount();
|
||||
$this->assertEqual($result, 2);
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ class PrimaryModelFixture extends CakeTestFixture {
|
|||
'primary_name' => array('type' => 'string', 'null' => false)
|
||||
);
|
||||
var $records = array(
|
||||
array ('id' => 1, 'title' => 'Primary Name Existing')
|
||||
array ('id' => 1, 'primary_name' => 'Primary Name Existing')
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ class SecondaryModelFixture extends CakeTestFixture {
|
|||
'secondary_name' => array('type' => 'string', 'null' => false)
|
||||
);
|
||||
var $records = array(
|
||||
array ('id' => 1, 'title' => 'Secondary Name Existing')
|
||||
array ('id' => 1, 'secondary_name' => 'Secondary Name Existing')
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue