contact = SugarTestContactUtilities::createContact(); $this->useOutputBuffering = false; } public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); SugarTestContactUtilities::removeAllCreatedContacts(); } /* * @group bug40989 */ public function testRetrieveByStringFieldsFetchedRow() { $loadedContact = loadBean('Contacts'); $loadedContact = $loadedContact->retrieve_by_string_fields(array('last_name'=>'SugarContactLast')); $this->assertEquals('SugarContactLast', $loadedContact->fetched_row['last_name']); } public function testProcessFullListQuery() { $loadedContact = new Contact(); // loadBean('Contacts'); $loadedContact->disable_row_level_security = true; $contactList = $loadedContact->get_full_list(); $exampleContact = array_pop($contactList); $this->assertNotNull($exampleContact->fetched_row['id']); } }