Browse Source

Merge branch 'islandora-master/ISLANDORA-165'

pull/105/head
Alexander O'Neill 14 years ago
parent
commit
d3835ae8aa
  1. 8
      ilives/fedora_ilives.install
  2. 33
      ilives/fedora_ilives.test

8
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();
}
}

33
ilives/fedora_ilives.test

@ -0,0 +1,33 @@
<?php
class fedoraBookTestCase extends DrupalWebTestCase {
public static function getInfo() {
return array(
'name' => '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'));
}
}
Loading…
Cancel
Save