Skip to content
Permalink
Browse files

added resource reload test

  • Loading branch information
arzynik committed Dec 9, 2015
1 parent 23905a3 commit 653639bc025216e537a2f5715e48c58d5811846d
Showing with 10 additions and 0 deletions.
  1. +10 −0 tests/DBTest.php
@@ -422,4 +422,14 @@ public function testResourceStaticQ() {
$o = ClassResourceTest::q('select * from test_user limit 1')->get(0);
$this->assertEquals(1, $o->id);
}


public function testResourceReload() {
$o = ClassResourceTest::q('select * from test_user limit 1')->get(0);
$name = $o->name;
$o->name = 'new';
$o->load();
$this->assertEquals($name, $o->name);
}

}

0 comments on commit 653639b

Please sign in to comment.
You can’t perform that action at this time.