File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22
3+ use App \Providers \AppServiceProvider ;
4+
35return [
4- App \ Providers \ AppServiceProvider::class,
6+ AppServiceProvider::class,
57];
Original file line number Diff line number Diff line change 44
55use App \Livewire \Sheets \Form ;
66use App \Livewire \Sheets \Posts ;
7+ use Illuminate \Support \Collection ;
78use Livewire \Livewire ;
89use Revolution \Google \Sheets \Facades \Sheets ;
910use Tests \TestCase ;
@@ -142,7 +143,7 @@ public function test_posts_component_calls_sheets_methods()
142143 $ posts = $ component ->instance ()->posts ();
143144
144145 // Verify the returned data is correctly formatted (reversed and limited to 10)
145- $ this ->assertInstanceOf (\ Illuminate \ Support \ Collection::class, $ posts );
146+ $ this ->assertInstanceOf (Collection::class, $ posts );
146147 $ this ->assertCount (3 , $ posts );
147148
148149 // Should be in reverse order
@@ -227,7 +228,7 @@ public function test_posts_component_handles_empty_data()
227228 $ component = Livewire::test (Posts::class);
228229 $ posts = $ component ->instance ()->posts ();
229230
230- $ this ->assertInstanceOf (\ Illuminate \ Support \ Collection::class, $ posts );
231+ $ this ->assertInstanceOf (Collection::class, $ posts );
231232 $ this ->assertCount (0 , $ posts );
232233 }
233234}
You can’t perform that action at this time.
0 commit comments