/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @return void
*/
protected function setUp()
{
$serviceManager = Registry::get('Application')->getServiceManager();
$renderer = $serviceManager->get('Zend\\View\\Renderer\\PhpRenderer');
$serviceManager->setAllowOverride(true);
$serviceManager->setService('currentDocument', Model::fromArray(array('id' => 1)));
$serviceManager->setAllowOverride(false);
$this->object = new CurrentDocument($serviceManager);
}