Example #1
0
 public function testAddIssueComment()
 {
     $issue = new IDF_Issue();
     $issue->project = $this->projects[0];
     $issue->summary = 'This is a test issue';
     $issue->submitter = $this->users[0];
     $issue->create();
     $ic = new IDF_IssueComment();
     $ic->issue = $issue;
     $ic->submitter = $this->users[0];
     $ic->content = 'toto';
     $changes = array('s' => 'New summary', 'st' => 'Active', 't' => '-OS:Linux OS:Windows');
     $ic->changes = $changes;
     $ic->create();
     $comments = $issue->get_comments_list();
     $this->assertEqual($changes, $comments[0]->changes);
 }