Skip to content

Commit

Permalink
Add log to help track travis error
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 25, 2019
1 parent a776f36 commit 441b279
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/phpunit/FactureFournisseurTest.php
Expand Up @@ -135,7 +135,7 @@ public function testFactureFournisseurCreate()
$localobject->initAsSpecimen();
$result=$localobject->create($user);

$this->assertLessThan($result, 0);
$this->assertLessThan($result, 0, $localobject->errorsToString());
print __METHOD__." result=".$result."\n";
return $result;
}
Expand All @@ -160,7 +160,7 @@ public function testFactureFournisseurFetch($id)
$localobject=new FactureFournisseur($this->savdb);
$result=$localobject->fetch($id);

$this->assertLessThan($result, 0);
$this->assertLessThan($result, 0, $localobject->errorsToString());
print __METHOD__." id=".$id." result=".$result."\n";
return $localobject;
}
Expand All @@ -186,7 +186,7 @@ public function testFactureFournisseurUpdate($localobject)
$result=$localobject->update($user);

print __METHOD__." id=".$localobject->id." result=".$result."\n";
$this->assertLessThan($result, 0);
$this->assertLessThan($result, 0, $localobject->errorsToString());
return $localobject;
}

Expand All @@ -210,7 +210,7 @@ public function testFactureFournisseurValid($localobject)
$result=$localobject->validate($user);
print __METHOD__." id=".$localobject->id." result=".$result."\n";

$this->assertLessThan($result, 0);
$this->assertLessThan($result, 0, $localobject->errorsToString());
return $localobject;
}

Expand Down Expand Up @@ -265,7 +265,7 @@ public function testFactureFournisseurDelete($id)
$result=$localobject->delete($user);

print __METHOD__." id=".$id." result=".$result."\n";
$this->assertLessThan($result, 0);
$this->assertLessThan($result, 0, $localobject->errorsToString());
return $result;
}
}

0 comments on commit 441b279

Please sign in to comment.