diff --git a/test/phpunit/ProductTest.php b/test/phpunit/ProductTest.php
index 199aace802c0fc940abea00dcdb880be44f1fd24..87f290593f064d9ce86cb4d744a9994e7cb9a90c 100644
--- a/test/phpunit/ProductTest.php
+++ b/test/phpunit/ProductTest.php
@@ -232,7 +232,7 @@ class ProductTest extends PHPUnit_Framework_TestCase
         $localobject=new Product($this->savdb);
         $result=$localobject->fetch($id);
 
-        $result=$localobject->delete($id);
+        $result=$localobject->delete($user);
         print __METHOD__." id=".$id." result=".$result."\n";
         $this->assertLessThan($result, 0);