Skip to content

Commit c685680

Browse files
committed
Test morphing with turbo stream component
1 parent 41cd352 commit c685680

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Views/ComponentsTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,14 @@ public function streams()
115115
->assertSee('<template><p>Hello, World</p></template>', false)
116116
->assertSee('</turbo-stream>', false)
117117
->assertDontSee('target=');
118+
119+
// Morphs...
120+
$this->blade(<<<'BLADE'
121+
<x-turbo::stream target="article_123" action="update" method="morph">
122+
<p>Hello, World</p>
123+
</x-turbo::stream>
124+
BLADE)
125+
->assertSee('method="morph"', false);
118126
}
119127

120128
/** @test */

0 commit comments

Comments
 (0)