From 0f3f822e3dc7dd8919d4b4afe2d1568c4e120207 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 21 Mar 2012 11:06:53 +0100 Subject: [PATCH] Fix: add test --- test/phpunit/CategorieTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/phpunit/CategorieTest.php b/test/phpunit/CategorieTest.php index cb2e7bc2388..26ddd4bdfd5 100755 --- a/test/phpunit/CategorieTest.php +++ b/test/phpunit/CategorieTest.php @@ -133,6 +133,11 @@ class CategorieTest extends PHPUnit_Framework_TestCase // We create category $result=$localobject->create($user); print __METHOD__." result=".$result."\n"; + $this->assertGreaterThan(0, $result); + + // We check if exist + $result=$localobject->already_exists(); + print __METHOD__." result=".$result."\n"; $this->assertGreaterThan(0, $result); // We try to create same category again