mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 08:58:25 +00:00
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:
parent
ec76d6aac3
commit
34a7d667db
1 changed files with 2 additions and 1 deletions
|
@ -648,7 +648,8 @@ class ModelTest extends CakeTestCase {
|
||||||
$result = $this->Article->field('title', array('id' => 1));
|
$result = $this->Article->field('title', array('id' => 1));
|
||||||
$this->assertEqual($result, 'First Article');
|
$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();
|
$this->Article->create();
|
||||||
$result = $this->Article->save($data);
|
$result = $this->Article->save($data);
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue