We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23905a3 commit 653639bCopy full SHA for 653639b
1 file changed
tests/DBTest.php
@@ -422,4 +422,14 @@ public function testResourceStaticQ() {
422
$o = ClassResourceTest::q('select * from test_user limit 1')->get(0);
423
$this->assertEquals(1, $o->id);
424
}
425
+
426
427
+ public function testResourceReload() {
428
+ $o = ClassResourceTest::q('select * from test_user limit 1')->get(0);
429
+ $name = $o->name;
430
+ $o->name = 'new';
431
+ $o->load();
432
+ $this->assertEquals($name, $o->name);
433
+ }
434
435
0 commit comments