Merge pull request #8265 from ladybirdweb/analysis-e01aQ4
Apply fixes from StyleCI
This commit is contained in:
@@ -13,12 +13,12 @@ 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.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public function test_user_change_the_status()
|
public function test_user_change_the_status()
|
||||||
{
|
{
|
||||||
$str = 'Demopass@1';
|
$str = 'Demopass@1';
|
||||||
@@ -54,7 +54,6 @@ class TicketControllerTest extends TestCase
|
|||||||
$ticket->dept_id = 1;
|
$ticket->dept_id = 1;
|
||||||
$ticket->save();
|
$ticket->save();
|
||||||
|
|
||||||
|
|
||||||
$ticket_thread = new Ticket_Thread(
|
$ticket_thread = new Ticket_Thread(
|
||||||
[
|
[
|
||||||
'ticket_id' => $ticket->id,
|
'ticket_id' => $ticket->id,
|
||||||
@@ -88,6 +87,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'));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user