Ajout jsonserializable
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user