Пример #1
0
 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(''));
 }