Skip to content

Commit ed75d33

Browse files
committed
fix tests
1 parent a204942 commit ed75d33

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/LfmFileRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class LfmFileRepository implements RepositoryContract
1010

1111
public function __construct($storage_path)
1212
{
13-
$this->path = $this->rootPath() . $storage_path;
13+
$this->path = $storage_path;
1414
}
1515

1616
public function __call($function_name, $arguments)

tests/LfmPathTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ public function testFolders()
125125
$helper = m::mock(Lfm::class);
126126
$helper->shouldReceive('getCategoryName')->andReturn('files');
127127
$helper->shouldReceive('input')->with('working_dir')->andReturn('/shares');
128+
$helper->shouldReceive('input')->with('sort_type')->andReturn('alphabetic');
128129
$helper->shouldReceive('getStorage')->andReturn($storage);
129130
$helper->shouldReceive('getNameFromPath')->andReturn('bar');
130131
$helper->shouldReceive('getThumbFolderName')->andReturn('thumbs');
@@ -142,6 +143,7 @@ public function testFiles()
142143
$helper = m::mock(Lfm::class);
143144
$helper->shouldReceive('getCategoryName')->andReturn('files');
144145
$helper->shouldReceive('input')->with('working_dir')->andReturn('/shares');
146+
$helper->shouldReceive('input')->with('sort_type')->andReturn('alphabetic');
145147
$helper->shouldReceive('getStorage')->andReturn($storage);
146148
$helper->shouldReceive('getNameFromPath')->andReturn('bar');
147149

0 commit comments

Comments
 (0)