FIX SQL request and phpunit

This commit is contained in:
Laurent Destailleur
2020-02-05 13:41:10 +01:00
parent 2813c9d4b4
commit 9100b8a548
2 changed files with 9 additions and 13 deletions

View File

@@ -247,21 +247,17 @@ class HolidayTest extends PHPUnit\Framework\TestCase
$langs=$this->savlangs;
$db=$this->savdb;
//$localobject->fetch($localobject->id);
$result = $localobject->fetchUsers(true, true, '');
$this->assertNotEquals($result, -1);
/*
$result=$localobject->getNomUrl(1);
print __METHOD__." id=".$localobject->id." result=".$result."\n";
$this->assertNotEquals($result, '');
$result = $localobject->fetchUsers(true, false, '');
$this->assertNotEquals($result, -1);
$result=$localobject->getFullAddress(1);
print __METHOD__." id=".$localobject->id." result=".$result."\n";
$this->assertContains("New address\nNew zip New town\nBelgium", $result);
$result = $localobject->fetchUsers(false, true, '');
$this->assertNotEquals($result, -1);
$localobject->info($localobject->id);
print __METHOD__." localobject->date_creation=".$localobject->date_creation."\n";
$this->assertNotEquals($localobject->date_creation, '');
*/
$result = $localobject->fetchUsers(false, false, '');
$this->assertNotEquals($result, -1);
return $localobject->id;
}