Skip to content

Commit 8c1fe92

Browse files
authored
Merge pull request #28 from tschreiner/fix-issue-27
Fix incorrect category reference
2 parents f3ec2be + 127585e commit 8c1fe92

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)