Browse Source

Fix: phpunit

Laurent Destailleur 11 years ago
parent
commit
ebfa63adf5
2 changed files with 2 additions and 3 deletions
  1. 0 1
      test/README
  2. 2 2
      test/phpunit/FactureTestRounding.php

+ 0 - 1
test/README

@@ -38,7 +38,6 @@ Note that xdebug must be installed for this feature to work.
 
 * Generate a report of Unit tests code coverage among all Dolibarr classes:
 Increase your PHP memory (memory_limit in php.ini) to 512MB.
-Remove all files into dolibarr root found with "find . | grep CVS\/Base\/ | grep \.php"
 > cd test
 > phpunit -d memory_limit=-1 -d max_input_time=0 -d max_execution_time=0 --configuration ./phpunit/phpunittest.xml --coverage-html ./report --coverage-clover ./report/logs/phpunit.coverage.xml --log-junit ./report/logs/phpunit.xml phpunit/AllTests.php
 

+ 2 - 2
test/phpunit/FactureTestRounding.php

@@ -143,7 +143,7 @@ class FactureTestRounding extends PHPUnit_Framework_TestCase
         // Add two lines
         for ($i=0; $i<2; $i++)
         {
-            $localobject->addline($result, 'Description '.$i, 1.24, 1, 10);
+            $localobject->addline('Description '.$i, 1.24, 1, 10);
         }
 
         $newlocalobject=new Facture($this->savdb);
@@ -186,7 +186,7 @@ class FactureTestRounding extends PHPUnit_Framework_TestCase
         // Add two lines
         for ($i=0; $i<2; $i++)
         {
-            $localobject->addline($result, 'Description '.$i, 1.24, 1, 10);
+            $localobject->addline('Description '.$i, 1.24, 1, 10);
         }
 
         $newlocalobject=new Facture($this->savdb);