@@ -15,7 +15,7 @@ class DataTableServiceTest extends TestCase
1515 use DatabaseTransactions;
1616
1717 /** @test */
18- public function it_can_handle_ajax_request ()
18+ public function it_can_handle_ajax_request (): void
1919 {
2020 $ response = $ this ->getAjax ('/users ' );
2121
@@ -27,7 +27,7 @@ public function it_can_handle_ajax_request()
2727 }
2828
2929 /** @test */
30- public function it_returns_view_on_normal_get_request ()
30+ public function it_returns_view_on_normal_get_request (): void
3131 {
3232 $ response = $ this ->get ('users ' );
3333
@@ -36,31 +36,31 @@ public function it_returns_view_on_normal_get_request()
3636 }
3737
3838 /** @test */
39- public function it_can_return_a_csv_file ()
39+ public function it_can_return_a_csv_file (): void
4040 {
4141 $ response = $ this ->get ('users?action=csv ' );
4242
4343 $ this ->assertInstanceOf (BinaryFileResponse::class, $ response ->baseResponse );
4444 }
4545
4646 /** @test */
47- public function it_can_return_a_xls_file ()
47+ public function it_can_return_a_xls_file (): void
4848 {
4949 $ response = $ this ->get ('users?action=excel ' );
5050
5151 $ this ->assertInstanceOf (BinaryFileResponse::class, $ response ->baseResponse );
5252 }
5353
5454 /** @test */
55- public function it_can_return_a_pdf_file ()
55+ public function it_can_return_a_pdf_file (): void
5656 {
5757 $ response = $ this ->get ('users?action=pdf ' );
5858
5959 $ this ->assertInstanceOf (Response::class, $ response ->baseResponse );
6060 }
6161
6262 /** @test */
63- public function it_allows_before_response_callback ()
63+ public function it_allows_before_response_callback (): void
6464 {
6565 $ response = $ this ->getAjax ('users/before ' );
6666 $ response ->assertOk ();
@@ -70,7 +70,7 @@ public function it_allows_before_response_callback()
7070 }
7171
7272 /** @test */
73- public function it_allows_response_callback ()
73+ public function it_allows_response_callback (): void
7474 {
7575 $ response = $ this ->getAjax ('users/response ' );
7676 $ response ->assertOk ();
0 commit comments