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:
phpnut 2007-10-24 17:04:14 +00:00
parent 6591c8f79b
commit 7b914bab9f
3 changed files with 5 additions and 2 deletions

View file

@ -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);
}

View file

@ -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')
);
}

View file

@ -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')
);
}