Beispiel #1
0
 /**
  * Tests mc_enum_resolutions method.
  */
 public function testResolution()
 {
     $resolutionObjectRefs = $this->client->mc_enum_resolutions($this->userName, $this->password);
     $resolutions = EnumTest::ObjectRefsToAssoc($resolutionObjectRefs);
     // '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix'
     $this->assertEquals(9, count($resolutions));
     $this->assertEquals('open', $resolutions[10]);
     $this->assertEquals('fixed', $resolutions[20]);
     $this->assertEquals('reopened', $resolutions[30]);
     $this->assertEquals('unable to reproduce', $resolutions[40]);
     $this->assertEquals('not fixable', $resolutions[50]);
     $this->assertEquals('duplicate', $resolutions[60]);
     $this->assertEquals('no change required', $resolutions[70]);
     $this->assertEquals('suspended', $resolutions[80]);
     $this->assertEquals('won\'t fix', $resolutions[90]);
 }