From 454376adb996c5eac7a38e09376a0f7ec6f41289 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Wed, 12 Jan 2011 15:37:24 -0400 Subject: [PATCH 1/2] ISLANDORA-165 Remove installer component of book module that depends on fedora already being installed. --- ilives/fedora_ilives.install | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ilives/fedora_ilives.install b/ilives/fedora_ilives.install index 64a70bb0..3c8c6575 100644 --- a/ilives/fedora_ilives.install +++ b/ilives/fedora_ilives.install @@ -7,13 +7,7 @@ /** * Implementation of hook_enable() - * Check for and install ilives book and page content models and viewer service - * definitions and deployment objects if necessary. */ function fedora_ilives_enable() { - module_load_include('inc', 'fedora_reposiotry', 'api/fedora_utils'); - if (fedora_available()) { - module_load_include('module', 'fedora_ilives', 'fedora_ilives'); - install_book_content_model_objects(); - } + } From 0de82c980c7a064c6c419a1aba84559afb72829a Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Fri, 14 Jan 2011 14:05:44 -0400 Subject: [PATCH 2/2] ISLANDORA-165 Test for successful module install on clean Drupal installation. --- ilives/fedora_ilives.test | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ilives/fedora_ilives.test diff --git a/ilives/fedora_ilives.test b/ilives/fedora_ilives.test new file mode 100644 index 00000000..1923d45c --- /dev/null +++ b/ilives/fedora_ilives.test @@ -0,0 +1,33 @@ + 'Fedora Ilives', + 'description' => t('The Fedora repository book module.'), + 'group' => t('fedora repository'), + ); + } + + protected function setUp() { + parent::setUp('fedora_ilives', 'fedora_repository'); + + + // Create and login user. + $drupal_user = $this->drupalCreateUser(array('add fedora datastreams', + 'edit fedora meta data', + 'edit tags datastream', + 'ingest new fedora objects', + 'purge objects and datastreams', + 'view fedora collection')); + + + $this->drupalLogin($drupal_user); + } + + public function testFedoraIlives() { + // Initially we are just testing that the module installs successfully from a clean Drupal. ISLANDORA-165. + $this->pass(drupal_get_path('module', 'fedora_ilives')); + + } +} \ No newline at end of file