/**
  *  add() method (add and edit modes of participant status type)
  */
 public function testAddStatusType()
 {
     $params = array('name' => 'testStatus', 'label' => 'testParticipant', 'class' => 'Positive', 'is_active' => 1, 'is_counted' => 1, 'weight' => 13, 'visibility_id' => 1);
     // check for add participant status type
     $statusType = CRM_Event_BAO_ParticipantStatusType::add($params);
     foreach ($params as $param => $value) {
         $this->assertEquals($value, $statusType->{$param});
     }
     $params = array('id' => $statusType->id, 'name' => 'testStatus', 'label' => 'testAlterParticipant', 'class' => 'Pending', 'is_active' => 0, 'is_counted' => 0, 'weight' => 14, 'visibility_id' => 2);
     // check for add participant status type
     $statusType = CRM_Event_BAO_ParticipantStatusType::add($params);
     foreach ($params as $param => $value) {
         $this->assertEquals($value, $statusType->{$param});
     }
 }