We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7d0c0f commit 8125d4dCopy full SHA for 8125d4d
tests/WidgetTest.php
@@ -2,8 +2,11 @@
2
3
namespace Tests;
4
5
+use Illuminate\Contracts\Support\Renderable;
6
+use Illuminate\Contracts\Support\Htmlable;
7
use Illuminate\Support\Facades\Response;
8
use Illuminate\Support\Facades\View;
9
+use Imanghafoori\Widgets\Widget;
10
11
class WidgetTest extends TestCase
12
{
@@ -106,6 +109,13 @@ public function test_json_widgets()
106
109
$this->assertEquals('123', $a);
107
110
}
108
111
112
+ public function test_widget_renderable_and_htmlable()
113
+ {
114
+ $widget = new Widget();
115
+ $this->assertInstanceOf(Htmlable::class, $widget);
116
+ $this->assertInstanceOf(Renderable::class, $widget);
117
+ }
118
+
119
public function test_json_widgets_as_string()
120
121
Response::shouldReceive('json')->once()->with('222111', 200)->andReturn('123');
0 commit comments