diff --git a/tests/Unit/Deploy/DeployactionTest.php b/tests/Unit/Deploy/DeployactionTest.php index 52af99e3b..0fb7bd59c 100644 --- a/tests/Unit/Deploy/DeployactionTest.php +++ b/tests/Unit/Deploy/DeployactionTest.php @@ -111,11 +111,11 @@ public function testAdd_item() { 'actionstype' => 'cmd', 'name' => 'Command ls', 'exec' => 'ls -lah', - 'logLineLimit' => '100', + 'logLineLimit' => 100, 'retChecks' => ['type' => 'okCode', 'values' => [127]], ]; $action->add_item($params); - $expected = '{"jobs":{"checks":[],"associatedFiles":[],"actions":[{"cmd":{"exec":"ls -lah","name":"Command ls","logLineLimit":"100"}}],"userinteractions":[]},"associatedFiles":[]}'; + $expected = '{"jobs":{"checks":[],"associatedFiles":[],"actions":[{"cmd":{"exec":"ls -lah","name":"Command ls","logLineLimit":100}}],"userinteractions":[]},"associatedFiles":[]}'; $json = Toolbox::stripslashes_deep($action->getJson($packages_id)); $this->assertEquals($expected, $json);