Ajout jsonserializable

This commit is contained in:
Gregory Letellier
2023-11-13 16:16:12 +01:00
parent bdb0a88e58
commit 43729579fa
4 changed files with 24 additions and 2 deletions

View File

@@ -53,6 +53,12 @@ test("model find", function() {
$row->col1 = "test";
$res = $row->save();
expect($res)->toBe(true);
$json = json_encode($row);
expect($json)->toBeJson();
$obj = json_decode($json);
expect($obj->col1)->toBe("test");
});
test("querybuilder", function() {