Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
BUG: refs #0352. Fix test so it won't collide with changes in next
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmullen committed Nov 18, 2011
1 parent 92209cf commit f42525b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function saveuploadedAction()
if($this->isTestingEnv())
{
//simulate file upload
$path = $this->_getParam('path');
$path = $this->_getParam('testpath');
$filename = basename($path);
$file_size = filesize($path);
}
Expand Down
4 changes: 2 additions & 2 deletions core/tests/controllers/UploadDownloadControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function testSaveuploadedAction()
$this->params = array();
$this->params['parent'] = $userDao->getPublicFolder()->getKey();
$this->params['license'] = 0;
$this->params['path'] = BASE_PATH.'/tests/testfiles/search.png'; //testing mode param
$this->params['testpath'] = BASE_PATH.'/tests/testfiles/search.png'; //testing mode param
$this->dispatchUrI('/upload/saveuploaded', $userDao);

$search = $this->Item->getItemsFromSearch('search.png', $userDao);
Expand All @@ -186,7 +186,7 @@ function testSaveuploadedAction()
$this->resetAll();
$this->params['parent'] = $userDao->getPublicFolder()->getKey();
$this->params['license'] = 0;
$this->params['path'] = BASE_PATH.'/tests/testfiles/empty.txt'; //testing mode param
$this->params['testpath'] = BASE_PATH.'/tests/testfiles/empty.txt'; //testing mode param
$this->dispatchUrI('/upload/saveuploaded', $userDao);

$search = $this->Item->getItemsFromSearch('empty.txt', $userDao);
Expand Down

0 comments on commit f42525b

Please sign in to comment.