Fix delete of expense report

This commit is contained in:
Laurent Destailleur
2020-11-25 15:29:18 +01:00
parent 54913c6a75
commit 944e2a8032
3 changed files with 102 additions and 80 deletions

View File

@@ -281,15 +281,9 @@ class ExpenseReportTest extends PHPUnit\Framework\TestCase
$langs=$this->savlangs;
$db=$this->savdb;
/*$result=$localobject->setstatus(0);
$result=$localobject->getSumPayments();
print __METHOD__." id=".$localobject->id." result=".$result."\n";
$this->assertLessThan($result, 0);
*/
/*$localobject->info($localobject->id);
print __METHOD__." localobject->date_creation=".$localobject->date_creation."\n";
$this->assertNotEquals($localobject->date_creation, '');
*/
$this->assertGreaterThanOrEqual(0, $result);
return $localobject->id;
}
@@ -316,7 +310,7 @@ class ExpenseReportTest extends PHPUnit\Framework\TestCase
$result=$localobject->delete($user);
print __METHOD__." id=".$id." result=".$result."\n";
$this->assertLessThan($result, 0);
$this->assertGreaterThan(0, $result);
return $result;
}
}