Gc\View\Helper\PartialTest::setUp PHP Метод

setUp() защищенный Метод

This method is called before a test is executed.
protected setUp ( ) : void
Результат 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);
    }