Qual: Mutualize code. Only one function to build address format.

This commit is contained in:
Laurent Destailleur
2013-04-07 17:39:08 +02:00
parent 8e2171b64c
commit 5c3e6de073
7 changed files with 56 additions and 130 deletions

View File

@@ -413,6 +413,10 @@ class FunctionsTest extends PHPUnit_Framework_TestCase
$object->country_code='US';
$address=dol_format_address($object);
$this->assertEquals("21 jump street\nMyTown, MyState, 99999",$address);
$object->country_code='AU';
$address=dol_format_address($object);
$this->assertEquals("21 jump street\nMyTown, MyState, 99999",$address);
}