22
33namespace Yajra \DataTables \Html \Tests ;
44
5+ use PHPUnit \Framework \Attributes \Test ;
56use Yajra \DataTables \Html \Builder ;
67use Yajra \DataTables \Html \Button ;
78use Yajra \DataTables \Html \SearchPane ;
89
910class BuilderOptionsPluginsTest extends TestCase
1011{
11- /** @test */
12+ #[Test]
1213 public function it_has_autofill_plugin ()
1314 {
1415 $ builder = $ this ->getHtmlBuilder ();
@@ -43,7 +44,7 @@ public function it_has_autofill_plugin()
4344 $ this ->assertEquals ([1 , 2 ], $ builder ->getAutoFill ('columns ' ));
4445 }
4546
46- /** @test */
47+ #[Test]
4748 public function it_has_buttons_plugin ()
4849 {
4950 $ builder = $ this ->getHtmlBuilder ();
@@ -63,7 +64,7 @@ public function it_has_buttons_plugin()
6364 $ this ->assertCount (2 , $ builder ->getButtons ());
6465 }
6566
66- /** @test */
67+ #[Test]
6768 public function it_has_col_reorder_plugin ()
6869 {
6970 $ builder = $ this ->getHtmlBuilder ();
@@ -85,7 +86,7 @@ public function it_has_col_reorder_plugin()
8586 $ this ->assertEquals (true , $ builder ->getColReorder ('realtime ' ));
8687 }
8788
88- /** @test */
89+ #[Test]
8990 public function it_has_fixed_columns_plugin ()
9091 {
9192 $ builder = $ this ->getHtmlBuilder ();
@@ -103,7 +104,7 @@ public function it_has_fixed_columns_plugin()
103104 $ this ->assertEquals (0 , $ builder ->getFixedColumns ('rightColumns ' ));
104105 }
105106
106- /** @test */
107+ #[Test]
107108 public function it_has_fixed_header_plugin ()
108109 {
109110 $ builder = $ this ->getHtmlBuilder ();
@@ -123,7 +124,7 @@ public function it_has_fixed_header_plugin()
123124 $ this ->assertEquals (0 , $ builder ->getFixedHeader ('headerOffset ' ));
124125 }
125126
126- /** @test */
127+ #[Test]
127128 public function it_has_keys_plugin ()
128129 {
129130
@@ -160,7 +161,7 @@ public function it_has_keys_plugin()
160161 $ this ->assertEquals (1 , $ builder ->getKeys ('tabIndex ' ));
161162 }
162163
163- /** @test */
164+ #[Test]
164165 public function it_has_responsive_plugin ()
165166 {
166167 $ builder = $ this ->getHtmlBuilder ();
@@ -183,7 +184,7 @@ public function it_has_responsive_plugin()
183184 $ this ->assertEquals ('orthogonal ' , $ builder ->getResponsive ('orthogonal ' ));
184185 }
185186
186- /** @test */
187+ #[Test]
187188 public function it_has_row_group_plugin ()
188189 {
189190 $ builder = $ this ->getHtmlBuilder ();
@@ -209,7 +210,7 @@ public function it_has_row_group_plugin()
209210 $ this ->assertEquals (null , $ builder ->getRowGroup ('startRender ' ));
210211 }
211212
212- /** @test */
213+ #[Test]
213214 public function it_has_row_reorder_plugin ()
214215 {
215216 $ builder = $ this ->getHtmlBuilder ();
@@ -235,7 +236,7 @@ public function it_has_row_reorder_plugin()
235236 $ this ->assertEquals (true , $ builder ->getRowReorder ('update ' ));
236237 }
237238
238- /** @test */
239+ #[Test]
239240 public function it_has_scroller_plugin ()
240241 {
241242 $ builder = $ this ->getHtmlBuilder ();
@@ -257,7 +258,7 @@ public function it_has_scroller_plugin()
257258 $ this ->assertEquals (200 , $ builder ->getScroller ('serverWait ' ));
258259 }
259260
260- /** @test */
261+ #[Test]
261262 public function it_has_search_panes_plugin ()
262263 {
263264 $ builder = $ this ->getHtmlBuilder ();
@@ -281,7 +282,7 @@ public function it_has_search_panes_plugin()
281282 $ this ->assertEquals (['show ' => true , 'cascadePanes ' => true ], $ builder ->getAttribute ('searchPanes ' ));
282283 }
283284
284- /** @test */
285+ #[Test]
285286 public function it_has_select_plugin ()
286287 {
287288 $ builder = $ this ->getHtmlBuilder ();
0 commit comments