public function setUp()
 {
     parent::setUp();
     $this->post = $this->modx->newObject('disPost');
     $this->post->fromArray(array('id' => 12345, 'title' => 'Unit Test Parser Post'), '', true, true);
     $this->post->loadParser();
     $this->parser =& $this->post->parser;
 }
 public function setUp()
 {
     parent::setUp();
     $this->modx->loadClass('DiscussController', $this->discuss->config['modelPath'] . 'discuss/', true, true);
     $this->controller = $this->getMockForAbstractClass('DiscussController', array(&$this->discuss));
     $this->controller->expects($this->any())->method('process')->will($this->returnValue(array()));
     $this->controller->expects($this->any())->method('getSessionPlace')->will($this->returnValue(''));
     $this->controller->expects($this->any())->method('getPageTitle')->will($this->returnValue(''));
 }
Example #3
0
 public function tearDown()
 {
     parent::tearDown();
     //$this->board->remove();
 }