mirror of
https://github.com/Karaka-Management/oms-ProjectManagement.git
synced 2026-02-16 07:28:40 +00:00
template fixes + bug fixes + style fixes
This commit is contained in:
parent
b0711ef33c
commit
9aecd7181c
|
|
@ -12,10 +12,11 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Modules\EventManagement\Models\ProgressType;
|
use Modules\ProjectManagement\Models\NullProject;
|
||||||
|
use Modules\ProjectManagement\Models\ProgressType;
|
||||||
|
|
||||||
/** \Modules\ProjectManagement\Models\Project $project */
|
/** \Modules\ProjectManagement\Models\Project $project */
|
||||||
$project = $this->data['project'];
|
$project = $this->data['project'] ?? new NullProject();
|
||||||
|
|
||||||
$isNew = $project->id === 0;
|
$isNew = $project->id === 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ final class ProjectMapperTest extends \PHPUnit\Framework\TestCase
|
||||||
#[\PHPUnit\Framework\Attributes\Group('module')]
|
#[\PHPUnit\Framework\Attributes\Group('module')]
|
||||||
public function testNewest() : void
|
public function testNewest() : void
|
||||||
{
|
{
|
||||||
$newest = ProjectMapper::getAll()->sort('id', OrderType::DESC)->limit(1)->execute();
|
$newest = ProjectMapper::getAll()->sort('id', OrderType::DESC)->limit(1)->executeGetArray();
|
||||||
|
|
||||||
self::assertCount(1, $newest);
|
self::assertCount(1, $newest);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user