This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ public function saveuploadedAction()
246
246
if ($ this ->isTestingEnv ())
247
247
{
248
248
//simulate file upload
249
- $ path = $ this ->_getParam ('path ' );
249
+ $ path = $ this ->_getParam ('testpath ' );
250
250
$ filename = basename ($ path );
251
251
$ file_size = filesize ($ path );
252
252
}
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ function testSaveuploadedAction()
176
176
$ this ->params = array ();
177
177
$ this ->params ['parent ' ] = $ userDao ->getPublicFolder ()->getKey ();
178
178
$ this ->params ['license ' ] = 0 ;
179
- $ this ->params ['path ' ] = BASE_PATH .'/tests/testfiles/search.png ' ; //testing mode param
179
+ $ this ->params ['testpath ' ] = BASE_PATH .'/tests/testfiles/search.png ' ; //testing mode param
180
180
$ this ->dispatchUrI ('/upload/saveuploaded ' , $ userDao );
181
181
182
182
$ search = $ this ->Item ->getItemsFromSearch ('search.png ' , $ userDao );
@@ -186,7 +186,7 @@ function testSaveuploadedAction()
186
186
$ this ->resetAll ();
187
187
$ this ->params ['parent ' ] = $ userDao ->getPublicFolder ()->getKey ();
188
188
$ this ->params ['license ' ] = 0 ;
189
- $ this ->params ['path ' ] = BASE_PATH .'/tests/testfiles/empty.txt ' ; //testing mode param
189
+ $ this ->params ['testpath ' ] = BASE_PATH .'/tests/testfiles/empty.txt ' ; //testing mode param
190
190
$ this ->dispatchUrI ('/upload/saveuploaded ' , $ userDao );
191
191
192
192
$ search = $ this ->Item ->getItemsFromSearch ('empty.txt ' , $ userDao );
You can’t perform that action at this time.
0 commit comments