Skip to content
Snippets Groups Projects
Commit 0f3f822e authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: add test

parent 7508974c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment