/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @return void
*/
protected function setUp()
{
$this->datatype = DatatypeModel::fromArray(array('name' => 'AbstractDatatype', 'prevalue_value' => 's:16:"AbstractDatatype";', 'model' => 'AbstractDatatype'));
$this->datatype->save();
$this->object = $this->getMockForAbstractClass('Gc\\Datatype\\AbstractDatatype');
$application = Registry::get('Application');
$this->object->setRequest($application->getServiceManager()->get('Request'));
$this->object->setRouter($application->getServiceManager()->get('Router'));
$this->object->setHelperManager($application->getServiceManager()->get('viewhelpermanager'));
$this->object->load($this->datatype, 1);
}