File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class LfmFileRepository implements RepositoryContract
10
10
11
11
public function __construct ($ storage_path )
12
12
{
13
- $ this ->path = $ this -> rootPath () . $ storage_path ;
13
+ $ this ->path = $ storage_path ;
14
14
}
15
15
16
16
public function __call ($ function_name , $ arguments )
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ public function testFolders()
125
125
$ helper = m::mock (Lfm::class);
126
126
$ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
127
127
$ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturn ('/shares ' );
128
+ $ helper ->shouldReceive ('input ' )->with ('sort_type ' )->andReturn ('alphabetic ' );
128
129
$ helper ->shouldReceive ('getStorage ' )->andReturn ($ storage );
129
130
$ helper ->shouldReceive ('getNameFromPath ' )->andReturn ('bar ' );
130
131
$ helper ->shouldReceive ('getThumbFolderName ' )->andReturn ('thumbs ' );
@@ -142,6 +143,7 @@ public function testFiles()
142
143
$ helper = m::mock (Lfm::class);
143
144
$ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
144
145
$ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturn ('/shares ' );
146
+ $ helper ->shouldReceive ('input ' )->with ('sort_type ' )->andReturn ('alphabetic ' );
145
147
$ helper ->shouldReceive ('getStorage ' )->andReturn ($ storage );
146
148
$ helper ->shouldReceive ('getNameFromPath ' )->andReturn ('bar ' );
147
149
You can’t perform that action at this time.
0 commit comments