Apply fixes from StyleCI
This commit is contained in:
@@ -315,9 +315,9 @@ class FilterControllerOld extends Controller
|
||||
/**
|
||||
*@category function to format and return user tickets
|
||||
*
|
||||
*@param string $segment
|
||||
* @param string $segment
|
||||
*
|
||||
*@return builder
|
||||
* @return builder
|
||||
*/
|
||||
public function formatUserTickets($segment)
|
||||
{
|
||||
|
@@ -2321,7 +2321,7 @@ class TicketController extends Controller
|
||||
*
|
||||
*@param null
|
||||
*
|
||||
*@return string //script to load tooltip data
|
||||
* @return string //script to load tooltip data
|
||||
*/
|
||||
public static function tooltip($ticketid)
|
||||
{
|
||||
@@ -2672,7 +2672,7 @@ class TicketController extends Controller
|
||||
*
|
||||
*@param srting array $t_id, $p_id
|
||||
*
|
||||
*@return null
|
||||
* @return null
|
||||
*/
|
||||
public function sendMergeNotification($p_id, $t_id)
|
||||
{
|
||||
|
@@ -125,9 +125,9 @@ class GuestController extends Controller
|
||||
/**
|
||||
*@category fucntion to check if mobile number is unqique or not
|
||||
*
|
||||
*@param string $mobile
|
||||
* @param string $mobile
|
||||
*
|
||||
*@return bool true(if mobile exists in users table)/false (if mobile does not exist in user table)
|
||||
* @return bool true(if mobile exists in users table)/false (if mobile does not exist in user table)
|
||||
*/
|
||||
public function checkMobile($mobile)
|
||||
{
|
||||
|
@@ -327,9 +327,9 @@ class UnAuthController extends Controller
|
||||
/**
|
||||
*@category function to change system's language
|
||||
*
|
||||
*@param string $lang //desired language's iso code
|
||||
* @param string $lang //desired language's iso code
|
||||
*
|
||||
*@return response
|
||||
* @return response
|
||||
*/
|
||||
public static function changeLanguage($lang)
|
||||
{
|
||||
|
@@ -17,7 +17,7 @@ use Mail;
|
||||
class PhpMailController extends Controller
|
||||
{
|
||||
/**
|
||||
*@var variable to instantiate common mailer class
|
||||
* @var variable to instantiate common mailer class
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
@@ -53,11 +53,11 @@ class AgentRequest extends Request
|
||||
/**
|
||||
*@category Funcion to set rule if send opt is enabled
|
||||
*
|
||||
*@param object $settings (instance of Model common settings)
|
||||
* @param object $settings (instance of Model common settings)
|
||||
*
|
||||
*@author manish.verma@ladybirdweb.com
|
||||
*
|
||||
*@return array|int
|
||||
* @return array|int
|
||||
*/
|
||||
public function check($settings)
|
||||
{
|
||||
|
@@ -119,11 +119,11 @@ class ClientRequest extends Request
|
||||
/**
|
||||
*@category Funcion to set rule if send opt is enabled
|
||||
*
|
||||
*@param object $settings (instance of Model common settings)
|
||||
* @param object $settings (instance of Model common settings)
|
||||
*
|
||||
*@author manish.verma@ladybirdweb.com
|
||||
*
|
||||
*@return array|int
|
||||
* @return array|int
|
||||
*/
|
||||
public function check($settings)
|
||||
{
|
||||
|
@@ -58,11 +58,11 @@ class CreateTicketRequest extends Request
|
||||
/**
|
||||
*@category Funcion to set rule if send opt is enabled
|
||||
*
|
||||
*@param object $settings (instance of Model common settings)
|
||||
* @param object $settings (instance of Model common settings)
|
||||
*
|
||||
*@author manish.verma@ladybirdweb.com
|
||||
*
|
||||
*@return array|int
|
||||
* @return array|int
|
||||
*/
|
||||
public function check($settings)
|
||||
{
|
||||
@@ -102,7 +102,7 @@ class CreateTicketRequest extends Request
|
||||
*
|
||||
*@param null
|
||||
*
|
||||
*@return array
|
||||
* @return array
|
||||
*/
|
||||
public function onlyMobleRequired()
|
||||
{
|
||||
|
@@ -38,7 +38,7 @@ class ProfileRequest extends Request
|
||||
/**
|
||||
*Check the mobile number is unique or not.
|
||||
*
|
||||
*@return string
|
||||
* @return string
|
||||
*/
|
||||
public function checkMobile()
|
||||
{
|
||||
|
@@ -45,11 +45,11 @@ class RegisterRequest extends Request
|
||||
/**
|
||||
*@category Funcion to set rule if send opt is enabled
|
||||
*
|
||||
*@param object $settings (instance of Model common settings)
|
||||
* @param object $settings (instance of Model common settings)
|
||||
*
|
||||
*@author manish.verma@ladybirdweb.com
|
||||
*
|
||||
*@return array|int
|
||||
* @return array|int
|
||||
*/
|
||||
public function check($settings)
|
||||
{
|
||||
|
@@ -45,11 +45,11 @@ class Sys_userRequest extends Request
|
||||
/**
|
||||
*@category Funcion to set rule if send opt is enabled
|
||||
*
|
||||
*@param object $settings (instance of Model common settings)
|
||||
* @param object $settings (instance of Model common settings)
|
||||
*
|
||||
*@author manish.verma@ladybirdweb.com
|
||||
*
|
||||
*@return array|int
|
||||
* @return array|int
|
||||
*/
|
||||
public function check($settings)
|
||||
{
|
||||
@@ -83,7 +83,7 @@ class Sys_userRequest extends Request
|
||||
*
|
||||
*@param null
|
||||
*
|
||||
*@return array
|
||||
* @return array
|
||||
*/
|
||||
public function onlyMobleRequired()
|
||||
{
|
||||
|
@@ -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;
|
||||
@@ -14,6 +13,7 @@ use Tests\TestCase;
|
||||
class TicketControllerTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
/**
|
||||
* A basic unit test example.
|
||||
*
|
||||
@@ -33,7 +33,7 @@ class TicketControllerTest extends TestCase
|
||||
'role' => 'user',
|
||||
]);
|
||||
$user->save();
|
||||
// Authenticate as the created user
|
||||
// Authenticate as the created user
|
||||
$this->actingAs($user);
|
||||
|
||||
$ticket = new Tickets(
|
||||
@@ -44,7 +44,7 @@ class TicketControllerTest extends TestCase
|
||||
'sla' => 2,
|
||||
'help_topic_id' => 1,
|
||||
'status' => 1,
|
||||
'source' => 1
|
||||
'source' => 1,
|
||||
]
|
||||
);
|
||||
$ticket->save();
|
||||
@@ -62,7 +62,6 @@ class TicketControllerTest extends TestCase
|
||||
);
|
||||
$ticket_thread->save();
|
||||
|
||||
|
||||
$mytickets = $this->get(route('ticket2'));
|
||||
$mytickets->assertStatus(200);
|
||||
|
||||
@@ -84,6 +83,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