2 require_once 'tests/service/SOAPTestCase.php';
7 class Bug42683Test extends SOAPTestCase
9 public function setUp()
11 $this->_soapURL = $GLOBALS['sugar_config']['site_url'].'/service/v2/soap.php';
15 public function testBadQuery()
17 $lead = SugarTestLeadUtilities::createLead();
20 $result = $this->_soapClient->call(
23 'session' => $this->_sessionId,
24 "module_name" => 'Leads',
25 "query" => "leads.id = '{$lead->id}'",
29 array(array('name' => 'email_addresses', 'value' => array('id', 'email_address', 'opt_out', 'primary_address'))),
33 $this->assertEquals('primary_address', $result['relationship_list'][0][0]['records'][0][3]['name']);
35 SugarTestLeadUtilities::removeAllCreatedLeads();