public function testfill_in_additional_list_fields() { $opportunity = new Opportunity(); //execute the method and test if it works and does not throws an exception. try { //test without force_load_details $opportunity->fill_in_additional_list_fields(); //test without force_load_details $opportunity->force_load_details = true; $opportunity->fill_in_additional_list_fields(); $this->assertTrue(true); } catch (Exception $e) { $this->fail(); } }