Example #1
0
 /**
  * @depends testAddCategory
  */
 public function testAddCategory_duplicate($cat_id)
 {
     $Category = new EventCategory($cat_id);
     $NewCat = new EventCategory();
     $NewCat->name = $Category->name;
     $NewCat->desc = $Category->desc;
     $NewCat->commit();
 }
 public function test_validate_desc()
 {
     $Category = new EventCategory();
     $Category->name = "adsfasdf";
     $Category->commit();
 }