Adding secondary data for testCreationWithMultipleDataSameModel

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5891 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2007-10-24 16:17:53 +00:00
parent ec76d6aac3
commit 34a7d667db

View file

@ -648,7 +648,8 @@ class ModelTest extends CakeTestCase {
$result = $this->Article->field('title', array('id' => 1));
$this->assertEqual($result, 'First Article');
$data = array('Article' => array('user_id' => 2, 'title' => 'Brand New Article', 'body' => 'Brand New Article Body', 'published' => 'Y'));
$data = array('Article' => array('user_id' => 2, 'title' => 'Brand New Article', 'body' => 'Brand New Article Body', 'published' => 'Y'),
'SecondaryArticle' => array('id' => 1));
$this->Article->create();
$result = $this->Article->save($data);
$this->assertTrue($result);