Original code passed with flying colors using Code Review module. Ran it
through PHP_CodeSniffer and it found a crazy amount of errors.
Should be fixed now though.
Quick patch to the pull request I made. I should have used DRUPAL_ROOT
instead of the php document root variable as the patch didn't work on a
second system otherwise
A SimpleTest file has also been included to allow you to test this file
for errors.
Please note the require once directive at the top of
tests/MimeClass.test. I am not sure if this is Drupal kosher, but the
test wouldn't work without it.
There is probably a way around this include statement but I will leave
this to the Drupal experts.
Note that the Drupal 7 function file_mimetype_mapping has a Drupal alter
statement:
// Allow modules to alter the default mapping.
drupal_alter('file_mimetype_mapping', $mapping);
using this hook, you can add to this internal mime type list without
updating drupal core.
Hope this helps! If there are any questions please feel free to email me
at andrewfreddin@gmail.com
This config will let islandora work with travis-ci.
travis
more travis
This one should work.
Test travis with apache.
added sudo
Added chown
Fixed permissions... i hope.w
Apache config
back to non-apache
Another try at a travis config
Added some debug output
woot
Another update
Added some debug data to sort out whats up with travis.
more debug
another
More debug
Perhaps this will finally work
Revert "More debug"
This reverts commit 508e993f4b02f7f3c9eb0d978514d0be89abbc78.
Revert "another"
This reverts commit cbf280eb4ebd22dda90788752787250a0ef71361.
Revert "more debug"
This reverts commit e6ce86ad77fdb89807c426adaa04a90a9955f343.
Revert "Added some debug data to sort out whats up with travis."
This reverts commit 5cb8e5b2f5dd20896f501a70167495b42d8f77f4.
Holy jumping jesus it works.
hook_islandora_object_alter(AbstractFedoraObject $object, array &$context)
hook_CMODEL_PID_islandora_object_alter(AbstractFedoraObject $object, array &$context)
hook_islandora_datastream_alter(AbstractFedoraObject $object, AbstractFedoraDatastream $datastream, array &$context)
hook_CMODEL_PID_DSID_islandora_datastream_altezr(AbstractFedoraObject $object, AbstractFedoraDatastream $datastream, array &$context)
hook_islandora_object_ingested(FedoraObject $object)
hook_CMODEL_PID_islandora_object_ingested(FedoraObject $object)
hook_islandora_object_modified(FedoraObject $object)
hook_CMODEL_PID_islandora_object_modified(FedoraObject $object)
hook_islandora_object_purged($pid)
hook_CMODEL_PID_islandora_object_purged($pid)
hook_islandora_datastream_ingested(FedoraObject $object, FedoraDatastream $datastream)
hook_CMODEL_PID_DSID_islandora_datastream_ingested(FedoraObject $object, FedoraDatastream $datastream)
hook_islandora_datastream_modified(FedoraObject $object, FedoraDatastream $datastream)
hook_CMODEL_PID_islandora_datastream_modified(FedoraObject $object, FedoraDatastream $datastream)
hook_islandora_datastream_purged(FedoraObject $object, $dsid)
hook_CMODEL_PID_islandora_datastream_purged(FedoraObject $object, $dsid)
Also updated the testing scripts to support different configurations, as well
wrote tests for all the implemented hooks. This requires the latest version
of Tuque so be sure to update.