Skip to content

Commit

Permalink
Test morphing with turbo stream component
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Aug 22, 2024
1 parent 41cd352 commit c685680
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Views/ComponentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ public function streams()
->assertSee('<template><p>Hello, World</p></template>', false)
->assertSee('</turbo-stream>', false)
->assertDontSee('target=');

// Morphs...
$this->blade(<<<'BLADE'
<x-turbo::stream target="article_123" action="update" method="morph">
<p>Hello, World</p>
</x-turbo::stream>
BLADE)
->assertSee('method="morph"', false);
}

/** @test */
Expand Down

0 comments on commit c685680

Please sign in to comment.