Commit 3a03a3f7 authored by totten's avatar totten

CRM-20958 - api_v3_ActivityTest::testActivityCreateExample - Ignore creation/modification date.

The technique of using hard-coded example record doesn't work with this data.
parent b21ffed7
......@@ -447,6 +447,11 @@ class api_v3_ActivityTest extends CiviUnitTestCase {
require_once 'api/v3/examples/Activity/Create.php';
$result = activity_create_example();
$expectedResult = activity_create_expectedresult();
// Compare everything *except* timestamps.
unset($result['values'][1]['created_date']);
unset($result['values'][1]['modified_date']);
unset($expectedResult['values'][1]['created_date']);
unset($expectedResult['values'][1]['modified_date']);
$this->assertEquals($result, $expectedResult);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment