Skip to content

Commit d345ea6

Browse files
committed
Revert "Uses correct tag"
This reverts commit ab78c75.
1 parent 23b14e4 commit d345ea6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Integration/View/ViewComponentTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ public function test_dynamic_view_component_with_string_name(): void
782782
$this->registerViewComponent('x-test', '<div>{{ $prop }}</div>');
783783

784784
$html = $this->render(<<<'HTML'
785-
<x-dynamic-component is="x-test" prop="test"/>
785+
<x-component is="x-test" prop="test"/>
786786
HTML);
787787

788788
$this->assertSame('<div>test</div>', $html);
@@ -793,7 +793,7 @@ public function test_dynamic_view_component_with_expression_name(): void
793793
$this->registerViewComponent('x-test', '<div>{{ $prop }}</div>');
794794

795795
$html = $this->render(<<<'HTML'
796-
<x-dynamic-component :is="$name" prop="test" />
796+
<x-component :is="$name" prop="test" />
797797
HTML, name: 'x-test');
798798

799799
$this->assertSame('<div>test</div>', $html);
@@ -804,7 +804,7 @@ public function test_dynamic_view_component_with_variable_attribute(): void
804804
$this->registerViewComponent('x-test', '<div>{{ $prop }}</div>');
805805

806806
$html = $this->render(<<<'HTML'
807-
<x-dynamic-component :is="$name" :prop="$input" />
807+
<x-component :is="$name" :prop="$input" />
808808
HTML, name: 'x-test', input: 'test');
809809

810810
$this->assertSame('<div>test</div>', $html);

0 commit comments

Comments
 (0)