Skip to content

Commit

Permalink
Add final unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 22, 2024
1 parent 31a1400 commit 540c0c4
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,19 @@ public function testHandle()
Hyde::path('resources/views/vendor/hyde/layouts/page.blade.php')
)->once();
}

public function testFormatOutput()
{
$this->filesystem->shouldReceive('allFiles')->andReturn([]);

$helper = new InteractivePublishCommandHelper('hyde-layouts');

$output = $helper->formatOutput([
'resources/views/vendor/hyde/layouts/app.blade.php',
'resources/views/vendor/hyde/layouts/page.blade.php',
'resources/views/vendor/hyde/layouts/post.blade.php',
]);

$this->assertSame('Published files [app.blade.php, page.blade.php, post.blade.php]', $output);
}
}

0 comments on commit 540c0c4

Please sign in to comment.