diff --git a/unit-test/include/class/acc_bilanTest.class.php b/unit-test/include/class/acc_bilanTest.class.php index 6573324f8..44408799f 100644 --- a/unit-test/include/class/acc_bilanTest.class.php +++ b/unit-test/include/class/acc_bilanTest.class.php @@ -24,6 +24,8 @@ class Acc_BilanTest extends TestCase $g_connection=new Database(DOSSIER); $g_parameter=new Noalyss_Parameter_Folder($g_connection); $this->object=new Acc_Bilan($g_connection); + $this->object->from = $g_connection->get_value('select min(p_id) from parm_periode'); + $this->object->to = $g_connection->get_value('select max(p_id) from parm_periode'); } /** diff --git a/unit-test/include/class/userTest.class.php b/unit-test/include/class/userTest.class.php index a0d85adaa..cbef9d61a 100644 --- a/unit-test/include/class/userTest.class.php +++ b/unit-test/include/class/userTest.class.php @@ -38,7 +38,7 @@ class UserTest extends TestCase array(USE_ID, USE_FIRST_NAME, USE_NAME, USE_LOGIN, USE_ACTIVE, USE_PASS, USE_ADMIN, USE_EMAIL)); - $this->object=new User($cn, USE_ID); + $this->object=new User($this->cn, USE_ID); } /**