diff options
author | Vladimirs Maksimovs <vladimirs.maksimovs@zabbix.com> | 2021-05-08 13:40:31 +0300 |
---|---|---|
committer | Vladimirs Maksimovs <vladimirs.maksimovs@zabbix.com> | 2021-05-08 13:40:31 +0300 |
commit | 21d37d468f21fcc9e22669fd1a4b4884229b3541 (patch) | |
tree | 49817d5394e82fbd9532256620bb7e541954e1cd /ui | |
parent | 76ec31426182b1c72f6edb229d1cd2bbd38b6946 (diff) |
.......... [ZBXNEXT-114,ZBXNEXT-6572] fixed valuemaps integration tests
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tests/integration/testValuemaps.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/tests/integration/testValuemaps.php b/ui/tests/integration/testValuemaps.php index 58adbe97a3f..79e63b660d6 100644 --- a/ui/tests/integration/testValuemaps.php +++ b/ui/tests/integration/testValuemaps.php @@ -274,9 +274,9 @@ class testValuemaps extends CIntegrationTest { $this->assertEquals(self::$itemid, $response['result']['itemids']); $response = $this->call('trigger.create', [ - 'description' => ' {ITEM.VALUE}', - 'expression' => '{'.self::HOST_NAME.':'.self::ITEM_NAME.'.last()}='.$inputData - ]); + 'description' => ' {ITEM.VALUE}', + 'expression' => 'last{'.self::HOST_NAME.'/'.self::ITEM_NAME.')='.$inputData + ]); $this->assertArrayHasKey('triggerids', $response['result']); $this->assertEquals(1, count($response['result']['triggerids'])); $triggerid = $response['result']['triggerids']; |