Skip to content

Commit f577176

Browse files
committed
fix decode
1 parent 6c8e183 commit f577176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/AjaxSshValidateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testSshValidate(bool $is_valid, string $pubkey)
2525
ob_start();
2626
include __DIR__ . "/../../webroot/js/ajax/ssh_validate.php";
2727
$output_str = ob_get_clean();
28-
$output = jsonDecode($output);
28+
$output = jsonDecode($output_str, true);
2929
$this->assertEquals($is_valid, $output["is_valid"]);
3030
}
3131
}

0 commit comments

Comments
 (0)