Пример #1
0
 public function providerTestAddBlock()
 {
     $data = array();
     $this->setUp();
     $path = $this->_path;
     $templatesDir = $path->getTemplateDir('Miao_Office_ViewBlock_TArticle');
     $viewBlock = new Miao_TestOffice_ViewBlock_TArticle();
     $viewBlock->setTemplatesDir($templatesDir);
     $data[] = array('TArticle', $viewBlock);
     return $data;
 }
Пример #2
0
 public function providerTestFetch()
 {
     $data = array();
     $this->setUp();
     $path = $this->_path;
     $templatesDir = $path->getTemplateDir('Miao_TestOffice_ViewBlock_TArticle');
     $viewBlock = new Miao_TestOffice_ViewBlock_TArticle();
     $viewBlock->setTemplatesDir($templatesDir);
     $data[] = array($viewBlock, array('index.tpl'), 'Article test');
     $data[] = array($viewBlock, 'index.tpl', 'Article test');
     $data[] = array($viewBlock, '', 'Article test');
     return $data;
 }