Skip to content

Commit

Permalink
Fixing typo and exposing fixture manager parameter to webrunner.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 13, 2011
1 parent 844c631 commit 7f8c98d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cake/tests/lib/cake_test_runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ protected function _getFixtureManager($arguments) {
if (!isset($arguments['fixtureManager'])) {
return new CakeFixtureManager();
}
App::import('Lib', 'test_suite/' . Inflector::underscore($arguments['fixtureManagerΩ']));
App::import('Lib', 'test_suite/' . Inflector::underscore($arguments['fixtureManager']));
if (class_exists($arguments['fixtureManager'])) {
return new $arguments['fixtureManager'];
}
throw new Exception('No fixture manager found.');
throw new RuntimeException('No fixture manager found.');
}
}
6 changes: 4 additions & 2 deletions cake/tests/lib/cake_test_suite_dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class CakeTestSuiteDispatcher {
'output' => 'html',
'show' => 'groups',
'show_passes' => false,
'filter' => false
'filter' => false,
'fixture' => null
);
/**
* Baseurl for the request
Expand Down Expand Up @@ -236,7 +237,8 @@ function _runTestCase() {

$options = array(
'--filter', $this->params['filter'],
'--output', $this->params['output']
'--output', $this->params['output'],
'--fixture', $this->params['fixture']
);
restore_error_handler();

Expand Down

0 comments on commit 7f8c98d

Please sign in to comment.