Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function testAccessors(): void |
||
29 | { |
||
30 | $data = [ |
||
31 | 'issueID' => 'TST-01', |
||
32 | 'timeSpent' => 666, |
||
33 | 'comment' => 'This is a test', |
||
34 | 'spentOn' => new \DateTimeImmutable() |
||
35 | ]; |
||
36 | |||
37 | $this->entity->setIssueID($data['issueID']); |
||
38 | $this->entity->setTimeSpent($data['timeSpent']); |
||
39 | $this->entity->setComment($data['comment']); |
||
40 | $this->entity->setSpentOn($data['spentOn']); |
||
41 | |||
42 | $this->assertEquals($data['issueID'], $this->entity->getIssueID()); |
||
43 | $this->assertEquals($data['timeSpent'], $this->entity->getTimeSpent()); |
||
44 | $this->assertEquals($data['comment'], $this->entity->getComment()); |
||
45 | $this->assertEquals($data['spentOn'], $this->entity->getSpentOn()); |
||
46 | } |
||
48 |