Skip to content

Commit 653639b

Browse files
committed
added resource reload test
1 parent 23905a3 commit 653639b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/DBTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,4 +422,14 @@ public function testResourceStaticQ() {
422422
$o = ClassResourceTest::q('select * from test_user limit 1')->get(0);
423423
$this->assertEquals(1, $o->id);
424424
}
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+
425435
}

0 commit comments

Comments
 (0)