refactor: rename Unit Support to Heavy Equipment across views, controllers, reports, and tests
This commit is contained in:
@@ -118,7 +118,7 @@ class P2hInspectionTest extends TestCase
|
||||
{
|
||||
$response = $this->actingAs($this->operatorUser)->get(route('p2h.form', ['code' => $this->supportVehicle->code]));
|
||||
$response->assertStatus(200);
|
||||
$response->assertSee('Pemeriksaan Pra-Harian (P2H) Unit Support');
|
||||
$response->assertSee('Pemeriksaan Pra-Harian (P2H) Heavy Equipment');
|
||||
$response->assertSee($this->supportVehicle->code);
|
||||
$response->assertSee('Bambang Operator');
|
||||
$response->assertSee('SIMPER Aktif');
|
||||
@@ -278,7 +278,7 @@ class P2hInspectionTest extends TestCase
|
||||
{
|
||||
$response = $this->actingAs($this->qmaAdmin)->get(route('qma.p2h.templates'));
|
||||
$response->assertStatus(200);
|
||||
$response->assertSee('Master Template P2H Unit Support');
|
||||
$response->assertSee('Master Template P2H Heavy Equipment');
|
||||
$response->assertSee('Excavator');
|
||||
$response->assertSee('EXD4RP');
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ class QmaActivityAndP2hExportTest extends TestCase
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertHeader('Content-Type', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
$this->assertStringContainsString('Laporan_P2H_Unit_Support_', (string) $response->headers->get('Content-Disposition'));
|
||||
$this->assertStringContainsString('Laporan_P2H_Heavy_Equipment_', (string) $response->headers->get('Content-Disposition'));
|
||||
|
||||
$content = $response->getContent();
|
||||
$this->assertStringStartsWith("PK\x03\x04", $content);
|
||||
@@ -212,7 +212,7 @@ class QmaActivityAndP2hExportTest extends TestCase
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertHeader('Content-Type', 'application/pdf');
|
||||
$this->assertStringContainsString('inline; filename="Laporan_P2H_Unit_Support_', (string) $response->headers->get('Content-Disposition'));
|
||||
$this->assertStringContainsString('inline; filename="Laporan_P2H_Heavy_Equipment_', (string) $response->headers->get('Content-Disposition'));
|
||||
|
||||
$content = $response->getContent();
|
||||
$this->assertStringStartsWith('%PDF-', $content);
|
||||
|
||||
@@ -42,7 +42,7 @@ class QmaModuleTest extends TestCase
|
||||
$response->assertSee('Dashboard Divisi QMA');
|
||||
$response->assertSee('Selamat datang, Pinto Yuliandra');
|
||||
$response->assertSee('Light Vehicle');
|
||||
$response->assertSee('Unit Support');
|
||||
$response->assertSee('Heavy Equipment');
|
||||
$response->assertSee('Log Aktivitas Kendaraan');
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ class QmaModuleTest extends TestCase
|
||||
$response = $this->actingAs($this->qmaAdmin)->get('/qma/vehicles/unit-support');
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertSee('Unit Support');
|
||||
$response->assertSee('Heavy Equipment');
|
||||
$response->assertSee('EX99');
|
||||
$response->assertDontSee('LV99');
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ class QmaSummaryExportTest extends TestCase
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertHeader('Content-Type', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
$this->assertStringContainsString('Laporan_Summary_P2H_Unit_Support_', (string) $response->headers->get('Content-Disposition'));
|
||||
$this->assertStringContainsString('Laporan_Summary_P2H_Heavy_Equipment_', (string) $response->headers->get('Content-Disposition'));
|
||||
|
||||
$content = $response->getContent();
|
||||
$this->assertStringStartsWith("PK\x03\x04", $content);
|
||||
@@ -211,7 +211,7 @@ class QmaSummaryExportTest extends TestCase
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertHeader('Content-Type', 'application/pdf');
|
||||
$this->assertStringContainsString('inline; filename="Laporan_Summary_P2H_Unit_Support_', (string) $response->headers->get('Content-Disposition'));
|
||||
$this->assertStringContainsString('inline; filename="Laporan_Summary_P2H_Heavy_Equipment_', (string) $response->headers->get('Content-Disposition'));
|
||||
|
||||
$content = $response->getContent();
|
||||
$this->assertStringStartsWith('%PDF-', $content);
|
||||
|
||||
@@ -98,7 +98,7 @@ class QmaSupportTimesheetTest extends TestCase
|
||||
->get(route('qma.support_timesheet.index'));
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertSee('Timesheet Unit Support');
|
||||
$response->assertSee('Timesheet Heavy Equipment');
|
||||
$response->assertSee('Catat Timesheet');
|
||||
$response->assertSee('TS-US-20261020-0001');
|
||||
$response->assertSee('EX01');
|
||||
@@ -167,7 +167,7 @@ class QmaSupportTimesheetTest extends TestCase
|
||||
->get(route('qma.activity.support_timesheet'));
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertSee('History Timesheet Unit Support');
|
||||
$response->assertSee('History Timesheet Heavy Equipment');
|
||||
$response->assertDontSee('Catat Timesheet');
|
||||
}
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ class QmaVehicleExportTest extends TestCase
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertHeader('Content-Type', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
$this->assertStringContainsString('Laporan_Kategori_Unit_Support_', (string) $response->headers->get('Content-Disposition'));
|
||||
$this->assertStringContainsString('Laporan_Kategori_Heavy_Equipment_', (string) $response->headers->get('Content-Disposition'));
|
||||
|
||||
$content = $response->getContent();
|
||||
$this->assertStringStartsWith("PK\x03\x04", $content);
|
||||
@@ -142,7 +142,7 @@ class QmaVehicleExportTest extends TestCase
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertHeader('Content-Type', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
||||
$this->assertStringContainsString('Laporan_Unit_Support_Lengkap_', (string) $response->headers->get('Content-Disposition'));
|
||||
$this->assertStringContainsString('Laporan_Heavy_Equipment_Lengkap_', (string) $response->headers->get('Content-Disposition'));
|
||||
|
||||
$content = $response->getContent();
|
||||
$this->assertStringStartsWith("PK\x03\x04", $content);
|
||||
@@ -176,7 +176,7 @@ class QmaVehicleExportTest extends TestCase
|
||||
|
||||
$responsePhysical->assertStatus(200);
|
||||
$responsePhysical->assertHeader('Content-Type', 'application/pdf');
|
||||
$this->assertStringContainsString('Laporan_Unit_Support_', (string) $responsePhysical->headers->get('Content-Disposition'));
|
||||
$this->assertStringContainsString('Laporan_Heavy_Equipment_', (string) $responsePhysical->headers->get('Content-Disposition'));
|
||||
$this->assertStringStartsWith('%PDF-', $responsePhysical->getContent());
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class UnitSupportBusinessProcessTest extends TestCase
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertSee('TEST-CAT');
|
||||
$response->assertSee('Tambah Kategori Unit');
|
||||
$response->assertSee('Tambah Kategori Heavy Equipment');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user