Skip to content

Commit 3883b2f

Browse files
committed
fixing tests
1 parent cbfed0f commit 3883b2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Unit/AutodocsServiceTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
$autodocs = getAutodocs();
1818
$storage = Mockery::mock(FileStorage::class);
1919
$storage->shouldReceive('saveFile');
20+
$storage->shouldReceive('hasDir')->andReturn(false);
21+
$storage->shouldReceive('createDir');
2022
$autodocs->storage = $storage;
2123

2224
$this->assertCount(2, $autodocs->referencePages);
@@ -36,6 +38,8 @@
3638
$autodocs = getAutodocs();
3739
$storage = Mockery::mock(FileStorage::class);
3840
$storage->shouldReceive('saveFile')->once();
41+
$storage->shouldReceive('hasDir')->andReturn(false);
42+
$storage->shouldReceive('createDir');
3943
$autodocs->storage = $storage;
4044

4145
$autodocs->buildPages('example');

0 commit comments

Comments
 (0)