|
|
@ -287,28 +287,21 @@ class IslandoraWebTestCase extends DrupalWebTestCase { |
|
|
|
* Constructs and ingests a Fedora object and datastream(s) via tuque. |
|
|
|
* Constructs and ingests a Fedora object and datastream(s) via tuque. |
|
|
|
* |
|
|
|
* |
|
|
|
* All keys inside the parameter arrays for this function are optional. it |
|
|
|
* All keys inside the parameter arrays for this function are optional. it |
|
|
|
* can potentially be run simply by calling $this->ingestTuqueObject();. |
|
|
|
* can be run simply by calling $this->ingestConstructedObject();. |
|
|
|
* |
|
|
|
* |
|
|
|
* @param array $properties |
|
|
|
* @param array $properties |
|
|
|
* An array containing object information in the format: |
|
|
|
* An array containing object information using these keys: |
|
|
|
* array( |
|
|
|
* 'label' - The object label; randomized if not set. |
|
|
|
* 'label' => "Object Label", // Randomized if not set. |
|
|
|
* 'pid' - 'namespace:pid', or just 'namespace' to generate the suffix. |
|
|
|
* 'pid' => "namespace:pid", // Or "namespace" to generate the ending. |
|
|
|
* 'models' - An array that can contain multiple content model PIDs. |
|
|
|
* 'models' => array('content:model1', 'content:model2', ...), |
|
|
|
* 'owner' - The object's owner. |
|
|
|
* 'owner' => "Owner", |
|
|
|
* 'parent' - The PID of the parent collection. |
|
|
|
* 'parent' => "parent:collection", |
|
|
|
|
|
|
|
* ); |
|
|
|
|
|
|
|
* @param array $datastreams |
|
|
|
* @param array $datastreams |
|
|
|
* An array containing zero or more datastream arrays, in the format: |
|
|
|
* An array containing zero or more datastream arrays that use the keys: |
|
|
|
* array( |
|
|
|
* 'dsid' - the datastream ID; randomized if not set. |
|
|
|
* array( |
|
|
|
* 'path' - The path to the file to use; defaults to fixtures/test.jpg. |
|
|
|
* 'dsid' => "DSID", // Randomized if not set. |
|
|
|
* 'control_group' - The single-letter control group identifier. |
|
|
|
* 'path' => "path_to_file", // Defaults to fixtures/test.jpg. |
|
|
|
* 'mimetype' - The datastream's mimetype. |
|
|
|
* 'control_group' => "X", |
|
|
|
|
|
|
|
* 'mimetype' => "mime/type", |
|
|
|
|
|
|
|
* ), |
|
|
|
|
|
|
|
* ); |
|
|
|
|
|
|
|
* With more arrays added if necessary. |
|
|
|
|
|
|
|
* |
|
|
|
* |
|
|
|
* @return bool|array |
|
|
|
* @return bool|array |
|
|
|
* FALSE if the object ingest failed, or the object array if successful. |
|
|
|
* FALSE if the object ingest failed, or the object array if successful. |
|
|
|