Esempio n. 1
0
 public function testCustomRelateFieldInDashlet()
 {
     $id = $this->relateField->ext3;
     $this->contact2->{$id} = $this->account->id;
     $this->contact2->save();
     $layoutDef = array('name' => $this->relateField->name, 'id_name' => $this->relateField->ext3, 'type' => 'relate', 'ext2' => 'Accounts', 'custom_module' => 'Contacts', 'table' => 'contacts_cstm', 'table_alias' => 'contacts', 'module' => 'Accounts', 'input_name0' => array(0 => $this->account->id));
     $out = $this->sugarWidget->queryFilterone_of($layoutDef);
     $this->assertContains($this->contact2->id, $out, 'The request for custom relate field was made incorrectly');
 }