[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 25/27: TEST fix bug in acc_balanceTest
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 25/27: TEST fix bug in acc_balanceTest |
Date: |
Sat, 2 Nov 2019 18:12:20 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 5b39c50a45893764c27293a2b923af8e5e2d812d
Author: Dany De Bontridder <address@hidden>
Date: Sat Nov 2 22:55:16 2019 +0100
TEST fix bug in acc_balanceTest
---
unit-test/include/class/acc_balanceTest.class.php | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/unit-test/include/class/acc_balanceTest.class.php
b/unit-test/include/class/acc_balanceTest.class.php
index c548605..5f81937 100644
--- a/unit-test/include/class/acc_balanceTest.class.php
+++ b/unit-test/include/class/acc_balanceTest.class.php
@@ -63,8 +63,10 @@ class Acc_BalanceTest extends TestCase
$this->object->jrn=1;
$this->object->filter_cat(array());
$this->assertEquals($this->object->jrn,null);
- $this->object->filter_cat(array('FIN'));
- $this->assertEquals($this->object->jrn[0],2);
+ $this->object->filter_cat(array('2'=>'FIN'));
+ $this->assertEquals($this->object->jrn,[1]);
+ $this->object->filter_cat(array('1'=>'ACH','2'=>'FIN'));
+ $this->assertEquals($this->object->jrn,[3,35,1]);
}
/**
*@covers Acc_Balance::summary_add
@@ -102,15 +104,7 @@ class Acc_BalanceTest extends TestCase
}
- /**
- *@covers Acc_Balance::summary_add
- */
- public function testSummary_display_pdf()
- {
- // No test since a PDF is modified and cannot be tested
- // by PHPUNIT
- $this->markTestSkipped("Summary_display_pdf cannot be tested since it
modify a PDF");
- }
+
/**
*@covers Acc_Balance::summary_init
*/
- [Noalyss-commit] [noalyss] 02/27: Bug : fix problem with reformating number in Sales and Purchase Ledger, (continued)
- [Noalyss-commit] [noalyss] 02/27: Bug : fix problem with reformating number in Sales and Purchase Ledger, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 04/27: Merge branch 'dev7103', Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 05/27: Code Cleaning : remove funciton getDefLine, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 10/27: Acc_Ledger_History add documentation, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 08/27: Acc_Ledger_FIN Remove DeadCode : show_ledger, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 09/27: Test : Acc_Ledger_FIN, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 12/27: Test : Acc_Ledger_History_Financial Test : Acc_Ledger_History_Purchase Add function phpunit_page_start, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 03/27: Merge branch 'v7110-stable', Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 01/27: documentation, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 06/27: Code Cleaning : remove direct access to global , add Exception, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 25/27: TEST fix bug in acc_balanceTest,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 13/27: TEST : Acc_Ledger_History*, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 14/27: Facility : new function to help with phpunit, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 26/27: Documentation, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 15/27: Facility improve page_start, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 22/27: Merge branch 'dev-7200', Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 21/27: Bug : export PDF for PRINTTVA doesn't print all the ledgers, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 17/27: Documentation, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 07/27: TEST : add new files, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 19/27: PRINTTVA : cosmetic bug, Dany De Bontridder, 2019/11/02
- [Noalyss-commit] [noalyss] 27/27: Merge branch 'dev-7200', Dany De Bontridder, 2019/11/02