fix test issues
Tests / PHPUnit (push) Failing after 51s

This commit is contained in:
root
2026-07-12 19:37:19 -04:00
parent 84337e8a50
commit 62492a5644
4 changed files with 4 additions and 206 deletions
-53
View File
@@ -1,53 +0,0 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class AssignmentModel extends Model
{
protected $table = 'assignments';
protected $primaryKey = 'id';
protected $useAutoIncrement = true;
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $protectFields = true;
protected $allowedFields = [
'title',
'description',
'due_date',
'class_id',
'teacher_id',
'student_id',
'created_at',
'updated_at',
];
protected bool $allowEmptyInserts = false;
protected bool $updateOnlyChanged = true;
protected $useTimestamps = true;
protected $dateFormat = 'datetime';
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
protected $deletedField = 'deleted_at';
protected $validationRules = [
'title' => 'required|string|max_length[255]',
'due_date' => 'required|valid_date',
'class_id' => 'required|integer',
'teacher_id' => 'required|integer',
];
protected $validationMessages = [];
protected $skipValidation = false;
protected $cleanValidationRules = true;
protected $allowCallbacks = true;
protected $beforeInsert = [];
protected $afterInsert = [];
protected $beforeUpdate = [];
protected $afterUpdate = [];
protected $beforeFind = [];
protected $afterFind = [];
protected $beforeDelete = [];
protected $afterDelete = [];
}