Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erikaheidi committed Sep 8, 2023
1 parent cbfed0f commit 3883b2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Unit/AutodocsServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
$autodocs = getAutodocs();
$storage = Mockery::mock(FileStorage::class);
$storage->shouldReceive('saveFile');
$storage->shouldReceive('hasDir')->andReturn(false);
$storage->shouldReceive('createDir');
$autodocs->storage = $storage;

$this->assertCount(2, $autodocs->referencePages);
Expand All @@ -36,6 +38,8 @@
$autodocs = getAutodocs();
$storage = Mockery::mock(FileStorage::class);
$storage->shouldReceive('saveFile')->once();
$storage->shouldReceive('hasDir')->andReturn(false);
$storage->shouldReceive('createDir');
$autodocs->storage = $storage;

$autodocs->buildPages('example');
Expand Down

0 comments on commit 3883b2f

Please sign in to comment.