Exemplo n.º 1
0
 public function testDeleteCategory()
 {
     $cat = ItemCategory::FindByName('Test Category 2');
     ItemCategory::Delete($cat->id);
     $cat = ItemCategory::FindObject($cat->id);
     $this->assertTrue($cat == null);
 }
Exemplo n.º 2
0
 public function deleteCategory($id)
 {
     if (ItemCategory::Delete($id)) {
         echo 1;
     } else {
         echo 0;
     }
 }