mirror of
https://github.com/Karaka-Management/oms-ProjectManagement.git
synced 2026-01-24 21:38:43 +00:00
Unit test fixes
This commit is contained in:
parent
e2d780ad83
commit
ac08d91d1f
|
|
@ -14,6 +14,9 @@
|
|||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace Modules\ProjectManagement\Models;
|
||||
use Modules\Calendar\Models\Calendar;
|
||||
use Modules\Tasks\Models\Task;
|
||||
use phpOMS\Localization\Money;
|
||||
|
||||
/**
|
||||
* Project class.
|
||||
|
|
@ -107,7 +110,12 @@ class Project
|
|||
|
||||
public function getTask(int $id) : Task
|
||||
{
|
||||
return $this->tasks[$id] ?? new NullTask();
|
||||
return $this->tasks[$id] ?? new Task();
|
||||
}
|
||||
|
||||
public function getTasks() : array
|
||||
{
|
||||
return $this->tasks;
|
||||
}
|
||||
|
||||
public function countTasks() : int
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user