Permalink
Browse files

added resource serialization test

  • Loading branch information...
1 parent 653639b commit 50f695160cb12b98f81f90b0294e35472087827d @arzynik committed Dec 9, 2015
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/DBTest.php
View
@@ -432,4 +432,12 @@ public function testResourceReload() {
$this->assertEquals($name, $o->name);
}
+ public function testResourceSerialize() {
+ $o = ClassResourceTest::q('select * from test_user limit 1')->get(0);
+ $o->serialize([
+ name => 'new'
+ ]);
+ $this->assertEquals('new', $o->name);
+ }
+
}

0 comments on commit 50f6951

Please sign in to comment.