File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
tests/Unit/Traits/Helpers Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -111,4 +111,30 @@ public function test_can_get_tools_display(): void
111111 $ this ->assertFalse ($ this ->basicTable ->shouldShowTools ());
112112
113113 }
114+
115+ public function test_can_get_tools_status_no_sortpills (): void
116+ {
117+ $ this ->assertTrue ($ this ->basicTable ->shouldShowTools ());
118+
119+ $ this ->basicTable ->setToolsEnabled ();
120+ $ this ->basicTable ->setSortingDisabled ();
121+ $ this ->basicTable ->setToolBarDisabled ();
122+ $ this ->assertFalse ($ this ->basicTable ->shouldShowTools ());
123+
124+ $ this ->basicTable ->setFiltersEnabled ();
125+ $ this ->basicTable ->setFilter ('pet_name_filter ' , 'Test ' );
126+
127+ $ this ->assertTrue ($ this ->basicTable ->shouldShowTools ());
128+
129+
130+ }
131+
132+ public function test_can_get_tools_status_toolbar_disabled (): void
133+ {
134+ $ this ->assertTrue ($ this ->basicTable ->shouldShowTools ());
135+ $ this ->basicTable ->setToolsEnabled ();
136+ $ this ->basicTable ->setToolBarDisabled ();
137+ $ this ->assertFalse ($ this ->basicTable ->shouldShowToolBar ());
138+
139+ }
114140}
You can’t perform that action at this time.
0 commit comments