la méthode find de l'objet retourne l'objet lui même

This commit is contained in:
Gregory Letellier
2023-11-07 10:36:01 +01:00
parent 97c8a8a92c
commit fd54281ce3
2 changed files with 8 additions and 6 deletions

View File

@@ -40,9 +40,12 @@ test("model find", function() {
$row->setTable("test");
$res = $row->find(1);
expect($res)->toBe(true);
expect($res->id)->toBe(1);
expect($row->col1)->toBe("test");
$res = $row->find(15);
expect($res)->toBe(null);
$row->col1 = "test2";
$res = $row->save();
expect($res)->toBe(true);