Exemple #1
0
 public function testCreateObjectWithId()
 {
     $obj = new Object("TestObject");
     $obj->set("foo", "bar");
     $obj->save();
     $this->assertNotEmpty($obj->getCreatedAt());
     $obj2 = Object::create("TestObject", $obj->getObjectId());
     $obj2->fetch();
     $this->assertEquals("bar", $obj2->get("foo"));
     $obj2->destroy();
 }