Browse Source

Some updates of tests for Travis

pull/301/head
Jonathan Green 12 years ago
parent
commit
90b9b6ceb6
  1. 2
      tests/hooks.test
  2. 4
      tests/web_test_case.inc

2
tests/hooks.test

@ -32,7 +32,7 @@ class IslandoraHooksTestCase extends IslandoraWebTestCase {
* @see IslandoraWebTestCase::setUp() * @see IslandoraWebTestCase::setUp()
*/ */
public function setUp() { public function setUp() {
parent::setUp('islandora_hooks_test', 'devel'); parent::setUp('islandora_hooks_test');
$this->repository = $this->admin->repository; $this->repository = $this->admin->repository;
$this->purgeTestObjects(); $this->purgeTestObjects();
} }

4
tests/web_test_case.inc

@ -18,6 +18,10 @@ class IslandoraWebTestCase extends DrupalWebTestCase {
// Always enable islandora. // Always enable islandora.
$args[] = 'islandora'; $args[] = 'islandora';
parent::setUp($args); parent::setUp($args);
// Its possible test are running before class autoloading
module_load_include('inc', 'islandora', 'includes/tuque');
module_load_include('inc', 'islandora', 'includes/tuque_wrapper');
$this->configuration = $this->getTestConfiguration(); $this->configuration = $this->getTestConfiguration();
if ($this->configuration['use_drupal_filter']) { if ($this->configuration['use_drupal_filter']) {
$this->backUpDrupalFilter(); $this->backUpDrupalFilter();

Loading…
Cancel
Save