Skip to content

Commit

Permalink
Verify mockery expectations at tear down
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Sep 9, 2024
1 parent 1a93e73 commit c03b9eb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ protected function setUp(): void
->shouldReceive('glob')->once()->with(Hyde::path('_docs/{*,**/*}.md'), GLOB_BRACE)->andReturn([])->byDefault();
}

protected function tearDown(): void
{
$this->verifyMockeryExpectations();
}

public function testBladePageGetHelperReturnsBladePageCollection()
{
$this->shouldReceiveGlob('_pages/{*,**/*}.blade.php')->andReturn(['_pages/test-page.blade.php']);
Expand Down

0 comments on commit c03b9eb

Please sign in to comment.