public function testSaveBasic() { $this->expectDocumentSaved(array('title' => 'Hello World', 'views' => 0, 'comments' => array())); $post = new BlogPost(array('title' => 'Hello World', 'views' => 0)); $this->assertNull($post->id()); $post->save(); $this->assertEquals(100, $post->id()); }