diff --git a/unit-test/include/class_acc_ledgerTest.php b/unit-test/include/class_acc_ledgerTest.php new file mode 100644 index 000000000..9a81c4592 --- /dev/null +++ b/unit-test/include/class_acc_ledgerTest.php @@ -0,0 +1,836 @@ +object=new Acc_Ledger($g_connection,0); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Acc_Ledger::get_last_pj + * @todo Implement testGet_last_pj(). + */ + public function testGet_last_pj() + { + $this->object->id=1; + $array=$this->object->get_last(2); + $this->assertEquals(2,count($array)); + + } + + /** + * @covers Acc_Ledger::get_type + * @todo Implement testGet_type(). + */ + public function testGet_type() + { + $this->object->id=0; + $type=$this->object->get_type(); + $this->assertEquals('GL',$type); + + $this->object->id=1; + $type=$this->object->get_type(); + $this->assertEquals('FIN',$type); + + $this->object->id=2; + $type=$this->object->get_type(); + $this->assertEquals('VEN',$type); + + $this->object->id=3; + $type=$this->object->get_type(); + $this->assertEquals('ACH',$type); + } + + /** + * @covers Acc_Ledger::delete + * @todo Implement testDelete(). + */ + public function testDelete() + { + $this->object->delete(); + } + + /** + * @covers Acc_Ledger::display_warning + * @todo Implement testDisplay_warning(). + */ + public function testDisplay_warning() + { + $this->object->display_warning("Alert", "warning"); + } + + /** + * @covers Acc_Ledger::reverse + * @todo Implement testReverse(). + */ + public function testReverse() + { + $this->object->reverse('01.01.2014'); + } + + /** + * @covers Acc_Ledger::get_name + * @todo Implement testGet_name(). + */ + public function testGet_name() + { + $this->object->id=3; + $name=$this->object->get_name(); + $this->assertEquals('Achat',$name); + } + + /** + * @covers Acc_Ledger::get_row + * @todo Implement testGet_row(). + */ + public function testGet_row() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_rowSimple + * @todo Implement testGet_rowSimple(). + */ + public function testGet_rowSimple() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::guess_pj + * @todo Implement testGuess_pj(). + */ + public function testGuess_pj() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::list_operation_to_reconcile + * @todo Implement testList_operation_to_reconcile(). + */ + public function testList_operation_to_reconcile() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::list_operation + * @todo Implement testList_operation(). + */ + public function testList_operation() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_detail + * @todo Implement testGet_detail(). + */ + public function testGet_detail() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_propertie + * @todo Implement testGet_propertie(). + */ + public function testGet_propertie() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::GetDefLine + * @todo Implement testGetDefLine(). + */ + public function testGetDefLine() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_solde + * @todo Implement testGet_solde(). + */ + public function testGet_solde() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::select_ledger + * @todo Implement testSelect_ledger(). + */ + public function testSelect_ledger() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_fiche_def + * @todo Implement testGet_fiche_def(). + */ + public function testGet_fiche_def() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_class_def + * @todo Implement testGet_class_def(). + */ + public function testGet_class_def() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::confirm + * @todo Implement testConfirm(). + */ + public function testConfirm() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_min_row + * @todo Implement testGet_min_row(). + */ + public function testGet_min_row() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::input + * @todo Implement testInput(). + */ + public function testInput() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::is_closed + * @todo Implement testIs_closed(). + */ + public function testIs_closed() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::verify + * @todo Implement testVerify(). + */ + public function testVerify() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::compute_internal_code + * @todo Implement testCompute_internal_code(). + */ + public function testCompute_internal_code() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::save + * @todo Implement testSave(). + */ + public function testSave() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_request + * @todo Implement testGet_request(). + */ + public function testGet_request() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::next_number + * @todo Implement testNext_number(). + */ + public function testNext_number() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_first + * @todo Implement testGet_first(). + */ + public function testGet_first() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::update_paid + * @todo Implement testUpdate_paid(). + */ + public function testUpdate_paid() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::update_internal_code + * @todo Implement testUpdate_internal_code(). + */ + public function testUpdate_internal_code() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_default_card + * @todo Implement testGet_default_card(). + */ + public function testGet_default_card() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_all_fiche_def + * @todo Implement testGet_all_fiche_def(). + */ + public function testGet_all_fiche_def() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_saldo_exercice + * @todo Implement testGet_saldo_exercice(). + */ + public function testGet_saldo_exercice() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::check_strict + * @todo Implement testCheck_strict(). + */ + public function testCheck_strict() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::check_periode + * @todo Implement testCheck_periode(). + */ + public function testCheck_periode() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_last_date + * @todo Implement testGet_last_date(). + */ + public function testGet_last_date() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_id + * @todo Implement testGet_id(). + */ + public function testGet_id() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::create_document + * @todo Implement testCreate_document(). + */ + public function testCreate_document() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::check_payment + * @todo Implement testCheck_payment(). + */ + public function testCheck_payment() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::inc_seq_pj + * @todo Implement testInc_seq_pj(). + */ + public function testInc_seq_pj() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::search_form + * @todo Implement testSearch_form(). + */ + public function testSearch_form() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::build_search_sql + * @todo Implement testBuild_search_sql(). + */ + public function testBuild_search_sql() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::display_search_form + * @todo Implement testDisplay_search_form(). + */ + public function testDisplay_search_form() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_last + * @todo Implement testGet_last(). + */ + public function testGet_last() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::search_group + * @todo Implement testSearch_group(). + */ + public function testSearch_group() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_operation + * @todo Implement testGet_operation(). + */ + public function testGet_operation() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::existing_vat + * @todo Implement testExisting_vat(). + */ + public function testExisting_vat() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_other_amount + * @todo Implement testGet_other_amount(). + */ + public function testGet_other_amount() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::vat_operation + * @todo Implement testVat_operation(). + */ + public function testVat_operation() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::previous_amount + * @todo Implement testPrevious_amount(). + */ + public function testPrevious_amount() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::test_me + * @todo Implement testTest_me(). + */ + public function testTest_me() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::array_cat + * @todo Implement testArray_cat(). + */ + public function testArray_cat() + { + $array=Acc_Ledger::array_cat(); + $this->assertEquals(4,count($array)); + } + + /** + * @covers Acc_Ledger::get_tiers + * @todo Implement testGet_tiers(). + */ + public function testGet_tiers() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::listing + * @todo Implement testListing(). + */ + public function testListing() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::display_ledger + * @todo Implement testDisplay_ledger(). + */ + public function testDisplay_ledger() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::verify_ledger + * @todo Implement testVerify_ledger(). + */ + public function testVerify_ledger() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::update + * @todo Implement testUpdate(). + */ + public function testUpdate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::input_paid + * @todo Implement testInput_paid(). + */ + public function testInput_paid() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::input_new + * @todo Implement testInput_new(). + */ + public function testInput_new() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::save_new + * @todo Implement testSave_new(). + */ + public function testSave_new() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::delete_ledger + * @todo Implement testDelete_ledger(). + */ + public function testDelete_ledger() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_operation_date + * @todo Implement testGet_operation_date(). + */ + public function testGet_operation_date() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_supplier_now + * @todo Implement testGet_supplier_now(). + */ + public function testGet_supplier_now() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_supplier_late + * @todo Implement testGet_supplier_late(). + */ + public function testGet_supplier_late() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_customer_now + * @todo Implement testGet_customer_now(). + */ + public function testGet_customer_now() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::get_customer_late + * @todo Implement testGet_customer_late(). + */ + public function testGet_customer_late() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger::convert_from_follow + * @todo Implement testConvert_from_follow(). + */ + public function testConvert_from_follow() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_acc_ledger_finTest.php b/unit-test/include/class_acc_ledger_finTest.php new file mode 100644 index 000000000..c4ebba793 --- /dev/null +++ b/unit-test/include/class_acc_ledger_finTest.php @@ -0,0 +1,138 @@ +object=new Acc_Ledger_Fin($g_connection,1); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Acc_Ledger_Fin::verify + * @todo Implement testVerify(). + * @expectedException Exception + */ + public function testVerify() + { + + $this->object->verify(null); + } + + /** + * @covers Acc_Ledger_Fin::input + * @todo Implement testInput(). + */ + public function testInput() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Fin::confirm + * @todo Implement testConfirm(). + */ + public function testConfirm() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Fin::insert + * @todo Implement testInsert(). + */ + public function testInsert() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Fin::show_ledger + * @todo Implement testShow_ledger(). + */ + public function testShow_ledger() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Fin::get_bank_name + * @todo Implement testGet_bank_name(). + */ + public function testGet_bank_name() + { + $name=$this->object->get_bank_name(); + var_export($name); + if (strpos ($name,NOTFOUND) !=0 ) + $this->assertTrue(FALSE); + } + + /** + * @covers Acc_Ledger_Fin::get_bank + * @todo Implement testGet_bank(). + */ + public function testGet_bank() + { + $this->assertEquals(27,$this->object->get_bank()); + } + + /** + * @covers Acc_Ledger_Fin::numb_operation + * @todo Implement testNumb_operation(). + */ + public function testNumb_operation() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Fin::insert_quant_fin + * @todo Implement testInsert_quant_fin(). + */ + public function testInsert_quant_fin() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_acc_ledger_purchaseTest.php b/unit-test/include/class_acc_ledger_purchaseTest.php new file mode 100644 index 000000000..e5d23b46c --- /dev/null +++ b/unit-test/include/class_acc_ledger_purchaseTest.php @@ -0,0 +1,127 @@ +object=new Acc_Ledger_Purchase($g_connection,3); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Acc_Ledger_Purchase::verify + * @todo Implement testVerify(). + * @expectedException Exception + */ + public function testVerify() + { + $this->object->verify(array()); + } + + /** + * @covers Acc_Ledger_Purchase::insert + * @todo Implement testInsert(). + */ + public function testInsert() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Purchase::input + * @todo Implement testInput(). + */ + public function testInput() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Purchase::confirm + * @todo Implement testConfirm(). + */ + public function testConfirm() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Purchase::extra_info + * @todo Implement testExtra_info(). + */ + public function testExtra_info() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Purchase::show_unpaid + * @todo Implement testShow_unpaid(). + */ + public function testShow_unpaid() + { + // OBSOLETE : function must be removed in the next code cleaning + // $str_html=$this->object->show_unpaid(); + + } + + /** + * @covers Acc_Ledger_Purchase::get_detail_purchase + * @todo Implement testGet_detail_purchase(). + */ + public function testGet_detail_purchase() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Purchase::heading_detail_purchase + * @todo Implement testHeading_detail_purchase(). + */ + public function testHeading_detail_purchase() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_acc_ledger_soldTest.php b/unit-test/include/class_acc_ledger_soldTest.php new file mode 100644 index 000000000..66908f94c --- /dev/null +++ b/unit-test/include/class_acc_ledger_soldTest.php @@ -0,0 +1,138 @@ +object=new Acc_Ledger_Sold($g_connection,2); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Acc_Ledger_Sold::verify + * @todo Implement testVerify(). + * @expectedException Exception + */ + public function testVerify() + { + $this->object->verify(array()); + } + + /** + * @covers Acc_Ledger_Sold::insert + * @todo Implement testInsert(). + * @expectedException Exception + */ + public function testInsert() + { + $this->object->insert(array()); + } + + /** + * @covers Acc_Ledger_Sold::confirm + * @todo Implement testConfirm(). + * @expectedException Exception + */ + public function testConfirm() + { + $_POST['p_jrn']=$this->object->id; + $this->object->confirm(array()); + } + + /** + * @covers Acc_Ledger_Sold::extra_info + * @todo Implement testExtra_info(). + */ + public function testExtra_info() + { + $info=$this->object->extra_info(); + if ( ! is_string($info) ) { + $this->assertTrue(FALSE); + } + } + + /** + * @covers Acc_Ledger_Sold::show_unpaid + * @todo Implement testShow_unpaid(). + */ + public function testShow_unpaid() + { + // OBSOLETE : must be removed + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Sold::input + * @todo Implement testInput(). + */ + public function testInput() + { + $_REQUEST['ac']='VEN'; + $info=$this->object->input(); + if ( ! is_string($info) ) { + $this->assertTrue(FALSE); + } + } + + /** + * @covers Acc_Ledger_Sold::get_detail_sale + * @todo Implement testGet_detail_sale(). + */ + public function testGet_detail_sale() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Sold::heading_detail_sale + * @todo Implement testHeading_detail_sale(). + */ + public function testHeading_detail_sale() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Acc_Ledger_Sold::test_me + * @todo Implement testTest_me(). + */ + public function testTest_me() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_anc_accountTest.php b/unit-test/include/class_anc_accountTest.php new file mode 100644 index 000000000..b818ed790 --- /dev/null +++ b/unit-test/include/class_anc_accountTest.php @@ -0,0 +1,176 @@ +object=new Anc_Account; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Anc_Account::get_by_id + * @todo Implement testGet_by_id(). + */ + public function testGet_by_id() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::get_by_name + * @todo Implement testGet_by_name(). + */ + public function testGet_by_name() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::add + * @todo Implement testAdd(). + */ + public function testAdd() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::make_array_name + * @todo Implement testMake_array_name(). + */ + public function testMake_array_name() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::update + * @todo Implement testUpdate(). + */ + public function testUpdate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::delete + * @todo Implement testDelete(). + */ + public function testDelete() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::get_list + * @todo Implement testGet_list(). + */ + public function testGet_list() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::display_list + * @todo Implement testDisplay_list(). + */ + public function testDisplay_list() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::debug + * @todo Implement testDebug(). + */ + public function testDebug() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::form + * @todo Implement testForm(). + */ + public function testForm() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::get_from_array + * @todo Implement testGet_from_array(). + */ + public function testGet_from_array() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Account::test_me + * @todo Implement testTest_me(). + */ + public function testTest_me() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_anc_grandlivreTest.php b/unit-test/include/class_anc_grandlivreTest.php new file mode 100644 index 000000000..0d8c39989 --- /dev/null +++ b/unit-test/include/class_anc_grandlivreTest.php @@ -0,0 +1,116 @@ +object=new Anc_GrandLivre; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Anc_GrandLivre::set_sql_filter + * @todo Implement testSet_sql_filter(). + */ + public function testSet_sql_filter() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_GrandLivre::load + * @todo Implement testLoad(). + */ + public function testLoad() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_GrandLivre::load_csv + * @todo Implement testLoad_csv(). + */ + public function testLoad_csv() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_GrandLivre::button_export_pdf + * @todo Implement testButton_export_pdf(). + */ + public function testButton_export_pdf() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_GrandLivre::display_html + * @todo Implement testDisplay_html(). + */ + public function testDisplay_html() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_GrandLivre::show_button + * @todo Implement testShow_button(). + */ + public function testShow_button() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_GrandLivre::display_csv + * @todo Implement testDisplay_csv(). + */ + public function testDisplay_csv() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_anc_keyTest.php b/unit-test/include/class_anc_keyTest.php new file mode 100644 index 000000000..ce1854299 --- /dev/null +++ b/unit-test/include/class_anc_keyTest.php @@ -0,0 +1,140 @@ +object=new Anc_Key; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Anc_Key::key_avaiable + * @todo Implement testKey_avaiable(). + */ + public function testKey_avaiable() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Key::display_choice + * @todo Implement testDisplay_choice(). + */ + public function testDisplay_choice() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Key::display_list + * @todo Implement testDisplay_list(). + */ + public function testDisplay_list() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Key::input + * @todo Implement testInput(). + */ + public function testInput() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Key::verify + * @todo Implement testVerify(). + */ + public function testVerify() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Key::save + * @todo Implement testSave(). + */ + public function testSave() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Key::fill_table + * @todo Implement testFill_table(). + */ + public function testFill_table() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Key::key_add + * @todo Implement testKey_add(). + */ + public function testKey_add() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Key::delete + * @todo Implement testDelete(). + */ + public function testDelete() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_anc_key_sqlTest.php b/unit-test/include/class_anc_key_sqlTest.php new file mode 100644 index 000000000..da109d167 --- /dev/null +++ b/unit-test/include/class_anc_key_sqlTest.php @@ -0,0 +1,43 @@ +object=new Anc_Key_Detail_SQL($g_connection); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @backupGlobals enabled + * + */ + function test_me() + { + $this->assertTrue(true); + } + +} diff --git a/unit-test/include/class_anc_operationTest.php b/unit-test/include/class_anc_operationTest.php new file mode 100644 index 000000000..7a56deab1 --- /dev/null +++ b/unit-test/include/class_anc_operationTest.php @@ -0,0 +1,224 @@ +object=new Anc_Operation; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Anc_Operation::add + * @todo Implement testAdd(). + */ + public function testAdd() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::delete + * @todo Implement testDelete(). + */ + public function testDelete() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::get_list + * @todo Implement testGet_list(). + */ + public function testGet_list() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::html_table + * @todo Implement testHtml_table(). + */ + public function testHtml_table() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::get_by_jid + * @todo Implement testGet_by_jid(). + */ + public function testGet_by_jid() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::update_from_jrnx + * @todo Implement testUpdate_from_jrnx(). + */ + public function testUpdate_from_jrnx() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::get_jrid + * @todo Implement testGet_jrid(). + */ + public function testGet_jrid() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::get_balance + * @todo Implement testGet_balance(). + */ + public function testGet_balance() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::display_form_plan + * @todo Implement testDisplay_form_plan(). + */ + public function testDisplay_form_plan() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::save_form_plan_vat_nd + * @todo Implement testSave_form_plan_vat_nd(). + */ + public function testSave_form_plan_vat_nd() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::save_form_plan + * @todo Implement testSave_form_plan(). + */ + public function testSave_form_plan() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::save_update_form + * @todo Implement testSave_update_form(). + */ + public function testSave_update_form() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::to_request + * @todo Implement testTo_request(). + */ + public function testTo_request() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::delete_by_jid + * @todo Implement testDelete_by_jid(). + */ + public function testDelete_by_jid() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::display_table + * @todo Implement testDisplay_table(). + */ + public function testDisplay_table() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Anc_Operation::test_me + * @todo Implement testTest_me(). + */ + public function testTest_me() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_databaseTest.php b/unit-test/include/class_databaseTest.php new file mode 100644 index 000000000..f876962cc --- /dev/null +++ b/unit-test/include/class_databaseTest.php @@ -0,0 +1,584 @@ +object=new Database; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Database::verify + * @todo Implement testVerify(). + */ + public function testVerify() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::set_encoding + * @todo Implement testSet_encoding(). + */ + public function testSet_encoding() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::exec_sql + * @todo Implement testExec_sql(). + */ + public function testExec_sql() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::count_sql + * @todo Implement testCount_sql(). + */ + public function testCount_sql() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::get_current_seq + * @todo Implement testGet_current_seq(). + */ + public function testGet_current_seq() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::get_next_seq + * @todo Implement testGet_next_seq(). + */ + public function testGet_next_seq() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::start + * @todo Implement testStart(). + */ + public function testStart() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::commit + * @todo Implement testCommit(). + */ + public function testCommit() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::rollback + * @todo Implement testRollback(). + */ + public function testRollback() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::alter_seq + * @todo Implement testAlter_seq(). + */ + public function testAlter_seq() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::execute_script + * @todo Implement testExecute_script(). + */ + public function testExecute_script() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::get_version + * @todo Implement testGet_version(). + */ + public function testGet_version() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::fetch + * @todo Implement testFetch(). + */ + public function testFetch() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::size + * @todo Implement testSize(). + */ + public function testSize() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::count + * @todo Implement testCount(). + */ + public function testCount() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::apply_patch + * @todo Implement testApply_patch(). + */ + public function testApply_patch() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::get_value + * @todo Implement testGet_value(). + */ + public function testGet_value() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::get_array + * @todo Implement testGet_array(). + */ + public function testGet_array() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::create_sequence + * @todo Implement testCreate_sequence(). + */ + public function testCreate_sequence() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::exist_sequence + * @todo Implement testExist_sequence(). + */ + public function testExist_sequence() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::exist_table + * @todo Implement testExist_table(). + */ + public function testExist_table() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::exist_column + * @todo Implement testExist_column(). + */ + public function testExist_column() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::format_name + * @todo Implement testFormat_name(). + */ + public function testFormat_name() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::exist_database + * @todo Implement testExist_database(). + */ + public function testExist_database() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::exist_blob + * @todo Implement testExist_blob(). + */ + public function testExist_blob() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::exist_view + * @todo Implement testExist_view(). + */ + public function testExist_view() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::exist_schema + * @todo Implement testExist_schema(). + */ + public function testExist_schema() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::make_list + * @todo Implement testMake_list(). + */ + public function testMake_list() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::make_array + * @todo Implement testMake_array(). + */ + public function testMake_array() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::save_upload_document + * @todo Implement testSave_upload_document(). + */ + public function testSave_upload_document() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::num_row + * @todo Implement testNum_row(). + */ + public function testNum_row() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::fetch_array + * @todo Implement testFetch_array(). + */ + public function testFetch_array() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::fetch_all + * @todo Implement testFetch_all(). + */ + public function testFetch_all() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::fetch_result + * @todo Implement testFetch_result(). + */ + public function testFetch_result() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::fetch_row + * @todo Implement testFetch_row(). + */ + public function testFetch_row() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::lo_unlink + * @todo Implement testLo_unlink(). + */ + public function testLo_unlink() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::prepare + * @todo Implement testPrepare(). + */ + public function testPrepare() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::execute + * @todo Implement testExecute(). + */ + public function testExecute() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::lo_export + * @todo Implement testLo_export(). + */ + public function testLo_export() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::lo_import + * @todo Implement testLo_import(). + */ + public function testLo_import() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::escape_string + * @todo Implement testEscape_string(). + */ + public function testEscape_string() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::close + * @todo Implement testClose(). + */ + public function testClose() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::__toString + * @todo Implement test__toString(). + */ + public function test__toString() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::test_me + * @todo Implement testTest_me(). + */ + public function testTest_me() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::status + * @todo Implement testStatus(). + */ + public function testStatus() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Database::query_to_csv + * @todo Implement testQuery_to_csv(). + */ + public function testQuery_to_csv() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_default_menu_sqlTest.php b/unit-test/include/class_default_menu_sqlTest.php new file mode 100644 index 000000000..7f6872034 --- /dev/null +++ b/unit-test/include/class_default_menu_sqlTest.php @@ -0,0 +1,32 @@ +object=new Default_Menu_SQL; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + +} diff --git a/unit-test/include/class_document_exportTest.php b/unit-test/include/class_document_exportTest.php new file mode 100644 index 000000000..6381fdf00 --- /dev/null +++ b/unit-test/include/class_document_exportTest.php @@ -0,0 +1,104 @@ +object=new Document_Export; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Document_Export::concatenate_pdf + * @todo Implement testConcatenate_pdf(). + */ + public function testConcatenate_pdf() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Document_Export::move_file + * @todo Implement testMove_file(). + */ + public function testMove_file() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Document_Export::send_pdf + * @todo Implement testSend_pdf(). + */ + public function testSend_pdf() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Document_Export::clean_folder + * @todo Implement testClean_folder(). + */ + public function testClean_folder() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Document_Export::export_all + * @todo Implement testExport_all(). + */ + public function testExport_all() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Document_Export::check_file + * @todo Implement testCheck_file(). + */ + public function testCheck_file() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_ficheTest.php b/unit-test/include/class_ficheTest.php new file mode 100644 index 000000000..31a638ae6 --- /dev/null +++ b/unit-test/include/class_ficheTest.php @@ -0,0 +1,549 @@ +object=new Fiche($g_connection); + $result=$this->object->get_bk_account(); + $this->assertEquals(gettype($result),'array'); + $count = count($result); + $this->assertGreaterThan(0,$count); + + } + + /** + * @covers Fiche::get_by_qcode + * @todo Implement testGet_by_qcode(). + */ + public function testGet_by_qcode() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::setAttribut + * @todo Implement testSetAttribut(). + */ + public function testSetAttribut() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::getAttribut + * @todo Implement testGetAttribut(). + */ + public function testGetAttribut() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::seek + * @todo Implement testSeek(). + */ + public function testSeek() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::size + * @todo Implement testSize(). + */ + public function testSize() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::count_by_modele + * @todo Implement testCount_by_modele(). + */ + public function testCount_by_modele() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::GetByDef + * @todo Implement testGetByDef(). + */ + public function testGetByDef() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::ShowTable + * @todo Implement testShowTable(). + */ + public function testShowTable() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::strAttribut + * @todo Implement testStrAttribut(). + */ + public function testStrAttribut() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::to_array + * @todo Implement testTo_array(). + */ + public function testTo_array() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::blank + * @todo Implement testBlank(). + */ + public function testBlank() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::Display + * @todo Implement testDisplay(). + */ + public function testDisplay() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::Save + * @todo Implement testSave(). + */ + public function testSave() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::insert + * @todo Implement testInsert(). + */ + public function testInsert() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::update + * @todo Implement testUpdate(). + */ + public function testUpdate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::remove + * @todo Implement testRemove(). + */ + public function testRemove() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::getName + * @todo Implement testGetName(). + */ + public function testGetName() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_quick_code + * @todo Implement testGet_quick_code(). + */ + public function testGet_quick_code() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::Get + * @todo Implement testGet(). + */ + public function testGet() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_by_category + * @todo Implement testGet_by_category(). + */ + public function testGet_by_category() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_fiche_def_ref_id + * @todo Implement testGet_fiche_def_ref_id(). + */ + public function testGet_fiche_def_ref_id() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_row_date + * @todo Implement testGet_row_date(). + */ + public function testGet_row_date() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_row + * @todo Implement testGet_row(). + */ + public function testGet_row() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::HtmlTableDetail + * @todo Implement testHtmlTableDetail(). + */ + public function testHtmlTableDetail() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::HtmlTable + * @todo Implement testHtmlTable(). + */ + public function testHtmlTable() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::HtmlTableHeader + * @todo Implement testHtmlTableHeader(). + */ + public function testHtmlTableHeader() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_solde_detail + * @todo Implement testGet_solde_detail(). + */ + public function testGet_solde_detail() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_bk_balance + * @todo Implement testGet_bk_balance(). + */ + public function testGet_bk_balance() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::empty_attribute + * @todo Implement testEmpty_attribute(). + */ + public function testEmpty_attribute() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::Summary + * @todo Implement testSummary(). + */ + public function testSummary() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_categorie + * @todo Implement testGet_categorie(). + */ + public function testGet_categorie() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::belong_ledger + * @todo Implement testBelong_ledger(). + */ + public function testBelong_ledger() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_fiche_def + * @todo Implement testGet_fiche_def(). + */ + public function testGet_fiche_def() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::is_used + * @todo Implement testIs_used(). + */ + public function testIs_used() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::delete + * @todo Implement testDelete(). + */ + public function testDelete() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::build_sql + * @todo Implement testBuild_sql(). + */ + public function testBuild_sql() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::move_to + * @todo Implement testMove_to(). + */ + public function testMove_to() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_amount_side + * @todo Implement testGet_amount_side(). + */ + public function testGet_amount_side() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::test_me + * @todo Implement testTest_me(). + */ + public function testTest_me() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_gestion_title + * @todo Implement testGet_gestion_title(). + */ + public function testGet_gestion_title() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Fiche::get_all_account + * @todo Implement testGet_all_account(). + */ + public function testGet_all_account() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_follow_upTest.php b/unit-test/include/class_follow_upTest.php new file mode 100644 index 000000000..02df8c38a --- /dev/null +++ b/unit-test/include/class_follow_upTest.php @@ -0,0 +1,428 @@ +object=new Follow_Up; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Follow_Up::sql_security_filter + * @todo Implement testSql_security_filter(). + */ + public function testSql_security_filter() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::Display + * @todo Implement testDisplay(). + */ + public function testDisplay() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::get + * @todo Implement testGet(). + */ + public function testGet() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::save + * @todo Implement testSave(). + */ + public function testSave() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::myList + * @todo Implement testMyList(). + */ + public function testMyList() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::Update + * @todo Implement testUpdate(). + */ + public function testUpdate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::generate_document + * @todo Implement testGenerate_document(). + */ + public function testGenerate_document() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::fromArray + * @todo Implement testFromArray(). + */ + public function testFromArray() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::remove + * @todo Implement testRemove(). + */ + public function testRemove() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::get_last + * @todo Implement testGet_last(). + */ + public function testGet_last() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::get_today + * @todo Implement testGet_today(). + */ + public function testGet_today() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::get_late + * @todo Implement testGet_late(). + */ + public function testGet_late() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::insert_operation + * @todo Implement testInsert_operation(). + */ + public function testInsert_operation() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::remove_operation_deprecated + * @todo Implement testRemove_operation_deprecated(). + */ + public function testRemove_operation_deprecated() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::display_search + * @todo Implement testDisplay_search(). + */ + public function testDisplay_search() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::show_action_list + * @todo Implement testShow_action_list(). + */ + public function testShow_action_list() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::filter_by_tag + * @todo Implement testFilter_by_tag(). + */ + public function testFilter_by_tag() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::create_query + * @todo Implement testCreate_query(). + */ + public function testCreate_query() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::short_list + * @todo Implement testShort_list(). + */ + public function testShort_list() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::insert_action + * @todo Implement testInsert_action(). + */ + public function testInsert_action() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::export_csv + * @todo Implement testExport_csv(). + */ + public function testExport_csv() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::get_all_operation + * @todo Implement testGet_all_operation(). + */ + public function testGet_all_operation() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::tag_get + * @todo Implement testTag_get(). + */ + public function testTag_get() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::tag_add + * @todo Implement testTag_add(). + */ + public function testTag_add() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::tag_remove + * @todo Implement testTag_remove(). + */ + public function testTag_remove() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::tag_cell + * @todo Implement testTag_cell(). + */ + public function testTag_cell() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::action_tag_remove + * @todo Implement testAction_tag_remove(). + */ + public function testAction_tag_remove() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::action_tag_add + * @todo Implement testAction_tag_add(). + */ + public function testAction_tag_add() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::action_tag_clear + * @todo Implement testAction_tag_clear(). + */ + public function testAction_tag_clear() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::action_print + * @todo Implement testAction_print(). + */ + public function testAction_print() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::tag_clear + * @todo Implement testTag_clear(). + */ + public function testTag_clear() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::action_set_state + * @todo Implement testAction_set_state(). + */ + public function testAction_set_state() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up::action_remove + * @todo Implement testAction_remove(). + */ + public function testAction_remove() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_follow_up_detailTest.php b/unit-test/include/class_follow_up_detailTest.php new file mode 100644 index 000000000..742a05409 --- /dev/null +++ b/unit-test/include/class_follow_up_detailTest.php @@ -0,0 +1,176 @@ +object=new Follow_Up_Detail; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Follow_Up_Detail::get_parameter + * @todo Implement testGet_parameter(). + */ + public function testGet_parameter() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::set_parameter + * @todo Implement testSet_parameter(). + */ + public function testSet_parameter() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::get_info + * @todo Implement testGet_info(). + */ + public function testGet_info() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::verify + * @todo Implement testVerify(). + */ + public function testVerify() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::save + * @todo Implement testSave(). + */ + public function testSave() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::insert + * @todo Implement testInsert(). + */ + public function testInsert() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::update + * @todo Implement testUpdate(). + */ + public function testUpdate() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::load_all + * @todo Implement testLoad_all(). + */ + public function testLoad_all() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::load + * @todo Implement testLoad(). + */ + public function testLoad() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::delete + * @todo Implement testDelete(). + */ + public function testDelete() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::from_array + * @todo Implement testFrom_array(). + */ + public function testFrom_array() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Follow_Up_Detail::test_me + * @todo Implement testTest_me(). + */ + public function testTest_me() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_html_inputTest.php b/unit-test/include/class_html_inputTest.php new file mode 100644 index 000000000..6cf6a867b --- /dev/null +++ b/unit-test/include/class_html_inputTest.php @@ -0,0 +1,644 @@ +object=new HtmlInput; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers HtmlInput::setReadOnly + * @todo Implement testSetReadOnly(). + */ + public function testSetReadOnly() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::set_attribute + * @todo Implement testSet_attribute(). + */ + public function testSet_attribute() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::get_js_attr + * @todo Implement testGet_js_attr(). + */ + public function testGet_js_attr() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::make_object + * @todo Implement testMake_object(). + */ + public function testMake_object() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::debug + * @todo Implement testDebug(). + */ + public function testDebug() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::submit + * @todo Implement testSubmit(). + */ + public function testSubmit() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::button + * @todo Implement testButton(). + */ + public function testButton() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::reset + * @todo Implement testReset(). + */ + public function testReset() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::hidden + * @todo Implement testHidden(). + */ + public function testHidden() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::extension + * @todo Implement testExtension(). + */ + public function testExtension() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::button_anchor + * @todo Implement testButton_anchor(). + */ + public function testButton_anchor() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::infobulle + * @todo Implement testInfobulle(). + */ + public function testInfobulle() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::warnbulle + * @todo Implement testWarnbulle(). + */ + public function testWarnbulle() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::detail_op + * @todo Implement testDetail_op(). + */ + public function testDetail_op() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::detail_action + * @todo Implement testDetail_action(). + */ + public function testDetail_action() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::detail_modele_document + * @todo Implement testDetail_modele_document(). + */ + public function testDetail_modele_document() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::remove_stock + * @todo Implement testRemove_stock(). + */ + public function testRemove_stock() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::history_card + * @todo Implement testHistory_card(). + */ + public function testHistory_card() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::history_card_button + * @todo Implement testHistory_card_button(). + */ + public function testHistory_card_button() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::history_account + * @todo Implement testHistory_account(). + */ + public function testHistory_account() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::select_ledger + * @todo Implement testSelect_ledger(). + */ + public function testSelect_ledger() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::select_cat + * @todo Implement testSelect_cat(). + */ + public function testSelect_cat() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::display_periode + * @todo Implement testDisplay_periode(). + */ + public function testDisplay_periode() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::button_close + * @todo Implement testButton_close(). + */ + public function testButton_close() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::anchor_close + * @todo Implement testAnchor_close(). + */ + public function testAnchor_close() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::button_action + * @todo Implement testButton_action(). + */ + public function testButton_action() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::button_image + * @todo Implement testButton_image(). + */ + public function testButton_image() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::anchor_hide + * @todo Implement testAnchor_hide(). + */ + public function testAnchor_hide() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::print_window + * @todo Implement testPrint_window(). + */ + public function testPrint_window() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::card_detail + * @todo Implement testCard_detail(). + */ + public function testCard_detail() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::array_to_hidden + * @todo Implement testArray_to_hidden(). + */ + public function testArray_to_hidden() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::get_to_hidden + * @todo Implement testGet_to_hidden(). + */ + public function testGet_to_hidden() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::post_to_hidden + * @todo Implement testPost_to_hidden(). + */ + public function testPost_to_hidden() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::request_to_hidden + * @todo Implement testRequest_to_hidden(). + */ + public function testRequest_to_hidden() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::array_to_string + * @todo Implement testArray_to_string(). + */ + public function testArray_to_string() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::get_to_string + * @todo Implement testGet_to_string(). + */ + public function testGet_to_string() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::post_to_string + * @todo Implement testPost_to_string(). + */ + public function testPost_to_string() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::request_to_string + * @todo Implement testRequest_to_string(). + */ + public function testRequest_to_string() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::generate_id + * @todo Implement testGenerate_id(). + */ + public function testGenerate_id() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::default_value + * @todo Implement testDefault_value(). + */ + public function testDefault_value() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::default_value_get + * @todo Implement testDefault_value_get(). + */ + public function testDefault_value_get() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::default_value_post + * @todo Implement testDefault_value_post(). + */ + public function testDefault_value_post() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::default_value_request + * @todo Implement testDefault_value_request(). + */ + public function testDefault_value_request() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::title_box + * @todo Implement testTitle_box(). + */ + public function testTitle_box() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::anchor + * @todo Implement testAnchor(). + */ + public function testAnchor() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::select_stock + * @todo Implement testSelect_stock(). + */ + public function testSelect_stock() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::filter_table + * @todo Implement testFilter_table(). + */ + public function testFilter_table() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::show_reconcile + * @todo Implement testShow_reconcile(). + */ + public function testShow_reconcile() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::calendar_zoom + * @todo Implement testCalendar_zoom(). + */ + public function testCalendar_zoom() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::button_choice_ledger + * @todo Implement testButton_choice_ledger(). + */ + public function testButton_choice_ledger() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers HtmlInput::show_receipt_document + * @todo Implement testShow_receipt_document(). + */ + public function testShow_receipt_document() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_icardTest.php b/unit-test/include/class_icardTest.php new file mode 100644 index 000000000..282acfc9d --- /dev/null +++ b/unit-test/include/class_icardTest.php @@ -0,0 +1,128 @@ +object=new ICard; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers ICard::set_callback + * @todo Implement testSet_callback(). + */ + public function testSet_callback() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ICard::set_function + * @todo Implement testSet_function(). + */ + public function testSet_function() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ICard::ipopup + * @todo Implement testIpopup(). + */ + public function testIpopup() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ICard::set_dblclick + * @todo Implement testSet_dblclick(). + */ + public function testSet_dblclick() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ICard::input + * @todo Implement testInput(). + */ + public function testInput() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ICard::display + * @todo Implement testDisplay(). + */ + public function testDisplay() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ICard::search + * @todo Implement testSearch(). + */ + public function testSearch() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers ICard::test_me + * @todo Implement testTest_me(). + */ + public function testTest_me() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_menu_ref_sqlTest.php b/unit-test/include/class_menu_ref_sqlTest.php new file mode 100644 index 000000000..0aee82a17 --- /dev/null +++ b/unit-test/include/class_menu_ref_sqlTest.php @@ -0,0 +1,44 @@ +object=new Menu_Ref_SQL; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Menu_Ref_SQL::test_me + * @todo Implement testTest_me(). + */ + public function testTest_me() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_profile_sqlTest.php b/unit-test/include/class_profile_sqlTest.php new file mode 100644 index 000000000..2aa57da14 --- /dev/null +++ b/unit-test/include/class_profile_sqlTest.php @@ -0,0 +1,32 @@ +object=new Profile_sql; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + +} diff --git a/unit-test/include/class_stockTest.php b/unit-test/include/class_stockTest.php new file mode 100644 index 000000000..9c516b901 --- /dev/null +++ b/unit-test/include/class_stockTest.php @@ -0,0 +1,128 @@ +object=new Stock; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Stock::history + * @todo Implement testHistory(). + */ + public function testHistory() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Stock::export_stock_histo_form + * @todo Implement testExport_stock_histo_form(). + */ + public function testExport_stock_histo_form() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Stock::export_stock_summary_list_form + * @todo Implement testExport_stock_summary_list_form(). + */ + public function testExport_stock_summary_list_form() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Stock::search_box_button + * @todo Implement testSearch_box_button(). + */ + public function testSearch_box_button() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Stock::search_box + * @todo Implement testSearch_box(). + */ + public function testSearch_box() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Stock::create_query_histo + * @todo Implement testCreate_query_histo(). + */ + public function testCreate_query_histo() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Stock::summary + * @todo Implement testSummary(). + */ + public function testSummary() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Stock::build_tmp_table + * @todo Implement testBuild_tmp_table(). + */ + public function testBuild_tmp_table() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_stock_goods_sqlTest.php b/unit-test/include/class_stock_goods_sqlTest.php new file mode 100644 index 000000000..65f2c2b07 --- /dev/null +++ b/unit-test/include/class_stock_goods_sqlTest.php @@ -0,0 +1,32 @@ +object=new Stock_Goods_Sql; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + +} diff --git a/unit-test/include/class_stock_sqlTest.php b/unit-test/include/class_stock_sqlTest.php new file mode 100644 index 000000000..df2162716 --- /dev/null +++ b/unit-test/include/class_stock_sqlTest.php @@ -0,0 +1,28 @@ +object = new Stock_Sql; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } +} diff --git a/unit-test/include/class_tagTest.php b/unit-test/include/class_tagTest.php new file mode 100644 index 000000000..127011ca4 --- /dev/null +++ b/unit-test/include/class_tagTest.php @@ -0,0 +1,152 @@ +object=new Tag; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @covers Tag::show_list + * @todo Implement testShow_list(). + */ + public function testShow_list() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Tag::select + * @todo Implement testSelect(). + */ + public function testSelect() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Tag::form_add + * @todo Implement testForm_add(). + */ + public function testForm_add() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Tag::show_form_add + * @todo Implement testShow_form_add(). + */ + public function testShow_form_add() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Tag::save + * @todo Implement testSave(). + */ + public function testSave() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Tag::remove + * @todo Implement testRemove(). + */ + public function testRemove() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Tag::button_search + * @todo Implement testButton_search(). + */ + public function testButton_search() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Tag::select_search + * @todo Implement testSelect_search(). + */ + public function testSelect_search() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Tag::update_search_cell + * @todo Implement testUpdate_search_cell(). + */ + public function testUpdate_search_cell() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers Tag::add_clear_button + * @todo Implement testAdd_clear_button(). + */ + public function testAdd_clear_button() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} diff --git a/unit-test/include/class_tag_sqlTest.php b/unit-test/include/class_tag_sqlTest.php new file mode 100644 index 000000000..fda9fcbdb --- /dev/null +++ b/unit-test/include/class_tag_sqlTest.php @@ -0,0 +1,32 @@ +object=new Tag_SQL; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + +}