nhance/tests/unit/CheckFormateDataTest.php
2024-09-13 09:00:09 +05:30

41 lines
1.1 KiB
PHP
Executable File

<?php
namespace App\Tests;
use CodeIgniter\Test\CIUnitTestCase;
use App\Controllers\EmpDataServiceController;
use App\Models\EmployeePolicyModel;
use App\Models\EmployeeModel;
use App\Models\ClientModel;
use App\Models\ClientPolicyModel;
use App\Models\FileModel;
use App\Models\BatchListModel;
use App\Models\BatchFileModel;
use App\Models\EmpEndorsementModel;
use App\Models\ClientDepositModel;
class CheckFormateDataTest extends CIUnitTestCase
{
public function testGenerateExcelForAdditionAndInception()
{
$batch_data = [
'client_id' => 12,
'client_policy_id' => 12,
'insurer_or_tpa' => 'insurer',
'event_type' => 'inception',
'actions' => 'export',
'file_name' => 'TCS_HealthFlex_Advantage_Policy_IEI_06-04-2024_17-42-31.xlsx',
];
$empServiceController = new EmpDataServiceController();
$result = $empServiceController->generateExcelForAdditionAndInception($batch_data);
// You can add assertions here to verify the result if needed
$this->assertTrue($result);
}
}