Skip to content

Commit 127585e

Browse files
authored
Fix incorrect category reference
- Fix of issue #27 $secondIPEntryID referenced the same item as $firstIPEntryID.
1 parent f3ec2be commit 127585e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Idoit/APIClient/CMDBObjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function testCreateWithCategories() {
235235
$objectID = $result['id'];
236236
$modelEntryID = (int) $result['categories'][Category::CATG__MODEL][0];
237237
$firstIPEntryID = $result['categories'][Category::CATG__IP][0];
238-
$secondIPEntryID = $result['categories'][Category::CATG__IP][0];
238+
$secondIPEntryID = $result['categories'][Category::CATG__IP][1];
239239

240240
$model = $this->useCMDBCategory()->readOneByID($objectID, Category::CATG__MODEL, $modelEntryID);
241241
$this->assertArrayHasKey('id', $model);

0 commit comments

Comments
 (0)