// Verify that updated case is equal to the original with new subject.
$result = $this->callAPISuccessGetSingle('Case', array('case_id' => $id));
// Modification dates are likely to differ by 0-2 sec. Check manually.
- $this->assertGreaterThanOrEqual($result['modified_date'], $case['modified_date']);
- unset($result['modified_date']);
- unset($case['modified_date']);
+ $this->assertGreaterThanOrEqual($case['modified_date'], $result['modified_date']);
+ unset($result['modified_date'], $case['modified_date']);
// Everything else should be identical.
$this->assertAPIArrayComparison($result, $case);
}
// Verify that updated case is equal to the original with new subject.
$result = $this->callAPISuccessGetSingle('Case', array('case_id' => $id));
// Modification dates are likely to differ by 0-2 sec. Check manually.
- $this->assertGreaterThanOrEqual($result['modified_date'], $case['modified_date']);
- unset($result['modified_date']);
- unset($case['modified_date']);
+ $this->assertGreaterThanOrEqual($case['modified_date'], $result['modified_date']);
+ unset($result['modified_date'], $case['modified_date']);
// Everything else should be identical.
$this->assertAPIArrayComparison($result, $case);
}