From 34ca0169918e62dba2adde5094f5f3a8d6e77afd Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 24 Nov 2019 20:50:06 +0100 Subject: [PATCH] PHPUNIT Suppress risky test --- .../include/class/anc_grandlivre.Test.php | 80 -------- unit-test/include/class/anc_key.Test.php | 107 ---------- .../include/class/anc_operation.Test.php | 193 +----------------- 3 files changed, 1 insertion(+), 379 deletions(-) diff --git a/unit-test/include/class/anc_grandlivre.Test.php b/unit-test/include/class/anc_grandlivre.Test.php index 9a80e9604..404f5ec3a 100644 --- a/unit-test/include/class/anc_grandlivre.Test.php +++ b/unit-test/include/class/anc_grandlivre.Test.php @@ -30,84 +30,4 @@ class Anc_GrandLivreTest extends TestCase } - /** - * @covers Anc_GrandLivre::set_sql_filter - */ - public function testSet_sql_filter() - { - - } - - /** - * @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_key.Test.php b/unit-test/include/class/anc_key.Test.php index 9fdffffb3..d94d4ebb2 100644 --- a/unit-test/include/class/anc_key.Test.php +++ b/unit-test/include/class/anc_key.Test.php @@ -30,112 +30,5 @@ class Anc_KeyTest extends TestCase } - /** - * @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_operation.Test.php b/unit-test/include/class/anc_operation.Test.php index 5570d81de..b29da820b 100644 --- a/unit-test/include/class/anc_operation.Test.php +++ b/unit-test/include/class/anc_operation.Test.php @@ -18,7 +18,7 @@ class Anc_OperationTest extends TestCase */ protected function setUp() { - $this->object=new Anc_Operation; + // $this->object=new Anc_Operation; } /** @@ -30,196 +30,5 @@ class Anc_OperationTest extends TestCase } - /** - * @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.' - ); - } }