Changing order of test run in AllShells group to avoid errors

This commit is contained in:
José Lorenzo Rodríguez 2010-09-19 22:54:35 -04:30 committed by mark_story
parent 5c3b4cfcc4
commit d45788e14f
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ class AllShellsTest extends PHPUnit_Framework_TestSuite {
$suite->addTestFile(CORE_TEST_CASES . DS . 'console' . DS . 'cake.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'console' . DS . 'console_error_handler.test.php');
$tasks = array('acl', 'api', 'bake', 'schema', 'shell');
$tasks = array('schema', 'acl', 'api', 'bake', 'shell');
foreach ($tasks as $task) {
$suite->addTestFile($path . $task . '.test.php');
}

View file

@ -71,7 +71,7 @@ class CakeTestCase extends PHPUnit_Framework_TestCase {
*/
public function run(PHPUnit_Framework_TestResult $result = NULL) {
if (!empty($this->sharedFixture)) {
$this->sharedFixture->load($this);
$this->sharedFixture->load($this);
}
$result = parent::run($result);
if (!empty($this->sharedFixture)) {