/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*
* @return void
*/
protected function setUp()
{
$coreConfig = new CoreConfig();
$coreConfig->setValue('stream_wrapper_is_active', 1);
$this->object = new Partial($coreConfig);
$coreConfig->setValue('stream_wrapper_is_active', 0);
$this->view = ViewModel::fromArray(array('name' => 'View Name', 'identifier' => 'view-identifier', 'description' => 'View Description', 'content' => 'View Content'));
$this->view->save();
$view = new View();
$templatePathStack = new TemplatePathStack();
$templatePathStack->addPath(GC_TEMPLATE_PATH);
$view->setResolver($templatePathStack);
$this->object->setView($view);
}