Skip to content

Commit

Permalink
Remove unnecessary tap
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 11, 2023
1 parent 62aac16 commit b70acf7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/framework/tests/Feature/HydePageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,7 @@ public function test_all_returns_collection_of_all_parsed_source_files_from_page
MarkdownPage::all()
);
$this->assertEquals(
['_pages/foo.md' => tap(new MarkdownPage('foo'), function ($page) {
$page->title = 'Foo';
})],
['_pages/foo.md' => (new MarkdownPage('foo'))],
MarkdownPage::all()->all()
);
Filesystem::unlink('_pages/foo.md');
Expand Down

0 comments on commit b70acf7

Please sign in to comment.