start to add new features
This commit is contained in:
@@ -13,12 +13,12 @@ class TicketTimerSecondsFilesTest extends TestCase
|
||||
{
|
||||
$component = (string) file_get_contents(base_path('Modules/Helpdesk/Livewire/TicketTimer.php'));
|
||||
$model = (string) file_get_contents(base_path('Modules/Helpdesk/Models/TicketTimeLog.php'));
|
||||
$view = (string) file_get_contents(base_path('Modules/Helpdesk/resources/views/livewire/ticket-timer.blade.php'));
|
||||
$view = (string) file_get_contents(base_path('Modules/Helpdesk/Resources/views/livewire/ticket-timer.blade.php'));
|
||||
|
||||
$this->assertStringContainsString("'seconds'", $component);
|
||||
$this->assertStringContainsString("'seconds'", $model);
|
||||
$this->assertStringContainsString('diffInSeconds', $component);
|
||||
$this->assertStringContainsString('sum('seconds')', $component);
|
||||
$this->assertStringContainsString("sum('seconds')", $component);
|
||||
$this->assertStringContainsString('formatElapsed', $view);
|
||||
$this->assertStringContainsString('data-helpdesk-live-elapsed', $view);
|
||||
$this->assertStringNotContainsString('localStorage', $component);
|
||||
@@ -30,10 +30,10 @@ class TicketTimerSecondsFilesTest extends TestCase
|
||||
*/
|
||||
public function test_history_query_reads_ticket_time_logs_directly(): void
|
||||
{
|
||||
$partial = (string) file_get_contents(base_path('Modules/Helpdesk/resources/views/partials/ticket-time-log-history-query.blade.php'));
|
||||
$partial = (string) file_get_contents(base_path('Modules/Helpdesk/Resources/views/partials/ticket-time-log-history-query.blade.php'));
|
||||
|
||||
$this->assertStringContainsString('TicketTimeLog::query()', $partial);
|
||||
$this->assertStringContainsString('whereNotNull('ended_at')', $partial);
|
||||
$this->assertStringContainsString("whereNotNull('ended_at')", $partial);
|
||||
$this->assertStringContainsString('seconds', $partial);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user