/** * Create mock object. */ protected function setUp() { $this->mock = $this->getMockBuilder('ONGR\\ElasticsearchBundle\\DSL\\Query\\Span\\SpanQueryInterface')->getMock(); $this->mock->expects($this->atMost(1))->method('getType')->will($this->returnValue('span_or')); $this->mock->expects($this->atMost(1))->method('toArray')->will($this->returnValue(['key' => 'value'])); }
/** * @acces public. * @return String. */ public function getBrowserUrl() { return $this->modx->getOption('manager_url', null, MODX_MANAGER_URL) . 'index.php?a=browser'; }