/** * testBonPrevelementCreate * * @return int */ public function testBonPrelevementCreate() { global $conf, $user, $langs, $db; $conf = $this->savconf; $user = $this->savuser; $langs = $this->savlangs; $db = $this->savdb; // TODO // Create invoice // Create payment with mode withdraw // Ask withdraw request // Create withdraw record and generate SEPA file $localobject = new BonPrelevement($this->savdb); //$localobject->date_solde=dol_now(); $result = $localobject->Create(0, 0, 'simu'); print __METHOD__ . " result=" . $result . "\n"; $this->assertEquals($result, 0); // Test SEPA file return $result; }