Files
crmPRO/tests/run.php
Jacek Pyziak 47ffc19a23 Refactor task management and add attachment functionality
- Updated task editing template to handle default status for new tasks and corrected variable names.
- Enhanced work time reporting by rounding time to the nearest quarter hour and adjusting amount formatting.
- Introduced TasksController to manage task-related operations, including status resolution and email notifications.
- Added TaskAttachmentRepository for handling task attachments, including upload, rename, and delete functionalities.
- Implemented WorkTimeRepository to fetch clients with unsettled tasks and calculate total work time.
- Created unit tests for TasksController and TaskAttachmentRepository to ensure functionality and correctness.
2026-02-06 23:11:48 +01:00

36 lines
636 B
PHP

<?php
require_once __DIR__ . '/Domain/Tasks/WorkTimeRepositoryTest.php';
require_once __DIR__ . '/Domain/Tasks/TaskAttachmentRepositoryTest.php';
require_once __DIR__ . '/Controllers/TasksControllerTest.php';
$tests = [
'run_work_time_repository_tests',
'run_task_attachment_repository_tests',
'run_tasks_controller_tests'
];
$failed = 0;
foreach ( $tests as $test )
{
try
{
$test();
echo "[OK] {$test}\n";
}
catch ( Throwable $e )
{
$failed++;
echo "[FAIL] {$test}: " . $e -> getMessage() . "\n";
}
}
if ( $failed )
{
echo "\nFailed: {$failed}\n";
exit( 1 );
}
echo "\nAll tests passed.\n";