noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 23/27: TEST fix bug in acc_balanceTest


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 23/27: TEST fix bug in acc_balanceTest
Date: Sat, 2 Nov 2019 18:12:19 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 2f0207f93b5932f2c5511661056c236aa8b45577
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
      */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]