Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public function test_validate_desc()
 {
     $Category = new EventCategory();
     $Category->name = "adsfasdf";
     $Category->commit();
 }