fix payment issues
Tests / PHPUnit (push) Successful in 1m17s

This commit is contained in:
root
2026-07-18 19:12:13 -04:00
parent 4aac9472af
commit 068e739408
8 changed files with 1204 additions and 40 deletions
+13
View File
@@ -4,9 +4,22 @@ namespace Tests\App\Models;
use Tests\Support\ModelCrudTestCase;
use App\Models\PaymentModel;
use CodeIgniter\Model;
class PaymentModelTest extends ModelCrudTestCase
{
protected function fabricatorOverrides(Model $model): array
{
$overrides = parent::fabricatorOverrides($model);
if ($model instanceof PaymentModel) {
$overrides['transaction_id'] = uniqid('PAY-TEST-', true);
$overrides['payment_method'] = 'cash';
$overrides['status'] = 'recorded';
}
return $overrides;
}
public function testCanInsertAndRetrieve()
{