Apply fixes from StyleCI
This commit is contained in:

committed by
KNaveenraj-ladybird

parent
0bd6f0b257
commit
e1f6c29a3b
@@ -5,7 +5,6 @@ namespace Tests\Unit;
|
||||
use App\Model\helpdesk\Ticket\Ticket_Thread;
|
||||
use App\Model\helpdesk\Ticket\Tickets;
|
||||
use App\User;
|
||||
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Facades\Lang;
|
||||
@@ -16,6 +15,9 @@ class TicketControllerTest extends TestCase
|
||||
use DatabaseTransactions;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* A basic unit test example.
|
||||
*
|
||||
@@ -35,7 +37,11 @@ class TicketControllerTest extends TestCase
|
||||
'role' => 'user',
|
||||
]);
|
||||
$user->save();
|
||||
// Authenticate as the created user
|
||||
|
||||
|
||||
|
||||
|
||||
// Authenticate as the created user
|
||||
|
||||
$this->actingAs($user);
|
||||
|
||||
@@ -47,7 +53,7 @@ class TicketControllerTest extends TestCase
|
||||
'sla' => 2,
|
||||
'help_topic_id' => 1,
|
||||
'status' => 1,
|
||||
'source' => 1
|
||||
'source' => 1,
|
||||
]
|
||||
);
|
||||
$ticket->save();
|
||||
@@ -65,12 +71,14 @@ class TicketControllerTest extends TestCase
|
||||
);
|
||||
$ticket_thread->save();
|
||||
|
||||
|
||||
$mytickets = $this->get(route('ticket2'));
|
||||
$mytickets->assertStatus(200);
|
||||
|
||||
$response = $this->post(route('select_all'), [
|
||||
'select_all' => [$ticket->id],
|
||||
|
||||
|
||||
|
||||
'submit' => 'Open',
|
||||
|
||||
]);
|
||||
@@ -88,6 +96,5 @@ class TicketControllerTest extends TestCase
|
||||
$response->assertStatus(302); // Adjust this as needed
|
||||
$this->assertEquals(3, $ticket->fresh()->status); // Adjust this as needed
|
||||
$response->assertSessionHas('success', Lang::get('lang.tickets_have_been_closed'));
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user