Skip to content

Commit

Permalink
Update module search path in test
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Nov 14, 2023
1 parent 1d02b12 commit 8f61662
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ function setUp() : void
]
);

$lorisinstance = new \LORIS\LorisInstance($this->DB, $this->config, []);
// Ensure tests are run using this module directory with no overrides.
// We are in test, so .. brings us to candidate_parameters and ../../ brings
// us to modules for the LorisInstance config.
$lorisinstance = new \LORIS\LorisInstance($this->DB, $this->config, [__DIR__ . "/../../"]);

$this->engine = $lorisinstance->getModule(
'candidate_parameters'
Expand Down

0 comments on commit 8f61662

Please sign in to comment.