public function setUp() { // don't forget to call parent so that the request is set up parent::setUp(); /** * @see http://docs.collectiveaccess.org/wiki/Web_Service_API#Creating_new_records * @see https://gist.githubusercontent.com/skeidel/3871797/raw/item_request.json */ $vn_test_record = $this->addTestRecord('ca_objects', array('intrinsic_fields' => array('type_id' => 'moving_image'), 'preferred_labels' => array(array("locale" => "en_US", "name" => "My test moving image")), 'attributes' => array('duration' => array(array('duration' => '00:23:28'))))); $this->assertGreaterThan(0, $vn_test_record); $this->opt_object = new ca_objects($vn_test_record); $vn_comment_id = $this->opt_object->addComment("I like this very much.", 4); $this->setRecordMapEntry('ca_item_comments', $vn_comment_id); }