Skip to content

Commit

Permalink
fix: CreateTaskTest (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
wadedvsa authored Feb 15, 2024
1 parent 48253e0 commit b8fa51b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/Command/Task/CreateTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function testStructure()
'assignedToTeam' => 444,
'isClosed' => true,
'urgent' => 'Y',
'messaging' => 'Y',
'application' => 555,
'licence' => 666,
'busReg' => 123,
Expand All @@ -30,7 +31,7 @@ public function testStructure()
'irfoOrganisation' => 126,
'irhpApplication' => 107,
'assignedByUser' => 7,
'surrender' => 666
'surrender' => 666,
];

$command = CreateTask::create($data);
Expand All @@ -43,6 +44,7 @@ public function testStructure()
$this->assertEquals(444, $command->getAssignedToTeam());
$this->assertEquals(true, $command->getIsClosed());
$this->assertEquals('Y', $command->getUrgent());
$this->assertEquals('Y', $command->getMessaging());
$this->assertEquals(555, $command->getApplication());
$this->assertEquals(666, $command->getLicence());
$this->assertEquals(123, $command->getBusReg());
Expand All @@ -64,6 +66,7 @@ public function testStructure()
'assignedToTeam' => 444,
'isClosed' => true,
'urgent' => 'Y',
'messaging' => 'Y',
'application' => 555,
'licence' => 666,
'busReg' => 123,
Expand All @@ -73,7 +76,7 @@ public function testStructure()
'irfoOrganisation' => 126,
'irhpApplication' => 107,
'assignedByUser' => 7,
'surrender' => 666
'surrender' => 666,
],
$command->getArrayCopy()
);
Expand Down

0 comments on commit b8fa51b

Please sign in to comment.