object=new Acc_Ledger_Fin($g_connection, 1); $this->array= array ( "ledger_type" => "fin", "ac" => "COMPTA/MENUFIN/FIN", "gDossier" => DOSSIER, "nb_item" => 5, "chdate" => 1, "e_date" => "24.02.2018", "p_jrn" => 1, "e_pj" => "FIN3", "e_pj_suggest" => "FIN3", "first_sold" => -658.25, "last_sold" => "", "dateop0" => "", "e_other0" => "CLIENT1", "e_other_name0" => "Client 2", "e_other0_comment" => "", "e_other0_amount" => 123.1, "e_concerned0" => "", "dateop1" => "", "e_other1" => "FOURNI", "e_other_name1" => "Fournisseur 1", "e_other1_comment" => "", "e_other1_amount" => -400.76, "e_concerned1" => "", "dateop2" => "", "e_other2" => "", "e_other_name2" => "", "e_other2_comment" =>"" , "e_other2_amount" => 0, "e_concerned2" => "", "dateop3" => "", "e_other3" => "", "e_other_name3" => "", "e_other3_comment" => "", "e_other3_amount" => 0, "e_concerned3" => "", "dateop4" => "", "e_other4" => "", "e_other_name4" => "", "e_other4_comment" => "", "e_other4_amount" => 0, "e_concerned4" => "", "save" => "Sauve" ); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ protected function tearDown():void { } /** * @covers Acc_Ledger_Fin::input */ public function testInput() { $result=$this->object->input($this->array); $this->assertStringContainsString("show_fin_chdate('chdate');",$result); } /** * @covers Acc_Ledger_Fin::confirm */ public function testConfirm() { $array=$this->array; unset($array["save"]); $array["confirm"]="confirm"; $array["pa_id"]=array(2); $array["first_sold"]=-658.25; $array["last_sold"]=""; $array["mt"]="1572695340.6768"; $result=$this->object->confirm($array); $this->assertStringContainsString('