From 12cd8add45220b895057c1ce05320eb8aa1d352f Mon Sep 17 00:00:00 2001 From: Curtis Conard Date: Fri, 12 Apr 2024 21:13:14 -0400 Subject: [PATCH] test --- inc/devicesync.class.php | 2 +- tests/units/PluginJamfComputerSync.php | 2 +- tests/units/PluginJamfMobileSync.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/devicesync.class.php b/inc/devicesync.class.php index f1fecaf..649bf7b 100644 --- a/inc/devicesync.class.php +++ b/inc/devicesync.class.php @@ -161,7 +161,7 @@ public static function syncExtensionAttributeDefinitions(): void $attr = static::$api::getItemsClassic($api_itemtype, ['id' => $attribute['id']]); $input = [ 'jamf_id' => $attr['id'], - 'jamf_type' => static::$jamf_itemtype, + 'jamf_type' => static::$jamfplugin_itemtype, 'name' => $DB->escape($attr['name']), 'description' => $DB->escape($attr['description']), 'data_type' => $DB->escape($attr['data_type']) diff --git a/tests/units/PluginJamfComputerSync.php b/tests/units/PluginJamfComputerSync.php index 65a77b6..bccfbfd 100644 --- a/tests/units/PluginJamfComputerSync.php +++ b/tests/units/PluginJamfComputerSync.php @@ -109,7 +109,7 @@ public function testImport() { $ext_attr_iterator = $DB->request([ 'FROM' => PluginJamfItem_ExtensionAttribute::getTable(), 'WHERE' => [ - 'itemtype' => 'Computer', + 'itemtype' => 'PluginJamfComputer', 'items_id' => $link['id'] ] ]); diff --git a/tests/units/PluginJamfMobileSync.php b/tests/units/PluginJamfMobileSync.php index 22d1fe3..9566dec 100644 --- a/tests/units/PluginJamfMobileSync.php +++ b/tests/units/PluginJamfMobileSync.php @@ -120,7 +120,7 @@ public function testImportAsComputer() { $ext_attr_iterator = $DB->request([ 'FROM' => PluginJamfItem_ExtensionAttribute::getTable(), 'WHERE' => [ - 'itemtype' => 'MobileDevice', + 'itemtype' => PluginJamfMobileDevice::class, 'items_id' => $link['id'] ] ]);