Skip to content

Commit 8b2e529

Browse files
panda-madnessMargulan Baimbet
authored and
Margulan Baimbet
committedNov 6, 2020
Add tests
1 parent f88e708 commit 8b2e529

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
 

‎src/Illuminate/View/AppendableAttributeValue.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct($value)
2121
{
2222
$this->value = $value;
2323
}
24-
24+
2525
public function __toString()
2626
{
2727
return (string)$this->value;

‎tests/Integration/View/BladeTest.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function test_rendering_the_same_dynamic_component_with_different_attribu
4242
$this->assertSame('<span class="text-medium">
4343
Hello Taylor
4444
</span>
45-
45+
4646
<span >
4747
Hello Samuel
4848
</span>', trim($view));
@@ -54,6 +54,10 @@ public function test_appendable_attributes()
5454

5555
$this->assertSame('<div class="mt-4 bg-gray-100" data-controller="inside-controller outside-controller" foo="bar">
5656
Hello Taylor
57+
</div>
58+
59+
<div class="mt-4 bg-gray-100" data-controller="inside-controller" foo="bar">
60+
Hello Taylor
5761
</div>', trim($view));
5862
}
5963

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
<x-appendable-panel class="bg-gray-100" :name="$name" data-controller="outside-controller" foo="bar">
22
Panel contents
33
</x-appendable-panel>
4+
5+
<x-appendable-panel class="bg-gray-100" :name="$name" foo="bar">
6+
Panel contents
7+
</x-appendable-panel>

0 commit comments

Comments
 (0)
Please sign in to comment.