More phpunit tests
This commit is contained in:
parent
9f4bdd86b4
commit
348b8d2ffe
@ -772,7 +772,7 @@ function isInEEC($object)
|
|||||||
|
|
||||||
$country_code_in_EEC = getCountriesInEEC();
|
$country_code_in_EEC = getCountriesInEEC();
|
||||||
|
|
||||||
//print "dd".$this->country_code;
|
//print "dd".$object->country_code;
|
||||||
return in_array($object->country_code, $country_code_in_EEC);
|
return in_array($object->country_code, $country_code_in_EEC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -355,7 +355,20 @@ class SocieteTest extends PHPUnit\Framework\TestCase
|
|||||||
|
|
||||||
$result=$localobject->isInEEC();
|
$result=$localobject->isInEEC();
|
||||||
print __METHOD__." id=".$localobject->id." country_code=".$localobject->country_code." result=".$result."\n";
|
print __METHOD__." id=".$localobject->id." country_code=".$localobject->country_code." result=".$result."\n";
|
||||||
$this->assertTrue(true, $result);
|
$this->assertTrue($result);
|
||||||
|
|
||||||
|
$localobject->country_code = 'US';
|
||||||
|
|
||||||
|
$result=$localobject->isInEEC();
|
||||||
|
print __METHOD__." id=".$localobject->id." country_code=".$localobject->country_code." result=".$result."\n";
|
||||||
|
$this->assertFalse($result);
|
||||||
|
|
||||||
|
/*$localobject->country_code = 'GB';
|
||||||
|
|
||||||
|
$result=$localobject->isInEEC();
|
||||||
|
print __METHOD__." id=".$localobject->id." country_code=".$localobject->country_code." result=".$result."\n";
|
||||||
|
$this->assertTrue($result);
|
||||||
|
*/
|
||||||
|
|
||||||
$localobject->info($localobject->id);
|
$localobject->info($localobject->id);
|
||||||
print __METHOD__." localobject->date_creation=".$localobject->date_creation."\n";
|
print __METHOD__." localobject->date_creation=".$localobject->date_creation."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user