Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2023-09-20 06:41:32 +00:00
parent cbd07877df
commit 03585f5a5a
21 changed files with 78 additions and 80 deletions

View File

@@ -5,7 +5,6 @@ namespace Tests\Unit;
use App\Model\helpdesk\Ticket\Ticket_Thread; use App\Model\helpdesk\Ticket\Ticket_Thread;
use App\Model\helpdesk\Ticket\Tickets; use App\Model\helpdesk\Ticket\Tickets;
use App\User; use App\User;
use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Lang; use Illuminate\Support\Facades\Lang;
@@ -14,6 +13,7 @@ use Tests\TestCase;
class TicketControllerTest extends TestCase class TicketControllerTest extends TestCase
{ {
use DatabaseTransactions; use DatabaseTransactions;
/** /**
* A basic unit test example. * A basic unit test example.
* *
@@ -44,7 +44,7 @@ class TicketControllerTest extends TestCase
'sla' => 2, 'sla' => 2,
'help_topic_id' => 1, 'help_topic_id' => 1,
'status' => 1, 'status' => 1,
'source' => 1 'source' => 1,
] ]
); );
$ticket->save(); $ticket->save();
@@ -62,7 +62,6 @@ class TicketControllerTest extends TestCase
); );
$ticket_thread->save(); $ticket_thread->save();
$mytickets = $this->get(route('ticket2')); $mytickets = $this->get(route('ticket2'));
$mytickets->assertStatus(200); $mytickets->assertStatus(200);
@@ -84,6 +83,5 @@ class TicketControllerTest extends TestCase
$response->assertStatus(302); // Adjust this as needed $response->assertStatus(302); // Adjust this as needed
$this->assertEquals(3, $ticket->fresh()->status); // Adjust this as needed $this->assertEquals(3, $ticket->fresh()->status); // Adjust this as needed
$response->assertSessionHas('success', Lang::get('lang.tickets_have_been_closed')); $response->assertSessionHas('success', Lang::get('lang.tickets_have_been_closed'));
} }
} }