public function testPushEach_OnUnsavedDocument()
{
// create document
$doc = $this->collection->createDocument(array('some' => 'some'));
// push single to empty
$doc->pushEach('key', array(1, 2));
$doc->push('key', 3);
$doc->pushEach('key', array(4, 5));
$this->assertEquals(array(1, 2, 3, 4, 5), $doc->key);
$doc->save();
$this->assertEquals(array(1, 2, 3, 4, 5), $this->collection->getDocumentDirectly($doc->getId())->key);
}