File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 22
33namespace Tests ;
44
5+ use Illuminate \Contracts \Support \Renderable ;
6+ use Illuminate \Contracts \Support \Htmlable ;
57use Illuminate \Support \Facades \Response ;
68use Illuminate \Support \Facades \View ;
9+ use Imanghafoori \Widgets \Widget ;
710
811class WidgetTest extends TestCase
912{
@@ -106,6 +109,13 @@ public function test_json_widgets()
106109 $ this ->assertEquals ('123 ' , $ a );
107110 }
108111
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+
109119 public function test_json_widgets_as_string ()
110120 {
111121 Response::shouldReceive ('json ' )->once ()->with ('222111 ' , 200 )->andReturn ('123 ' );
You can’t perform that action at this time.
0 commit comments