private function getController()
 {
     $controller = new DeskController();
     $controller->setConsole($this->getMock('\\Zend\\Console\\Adapter\\AdapterInterface'));
     $controller->setQueueEventManager(new QueueEventManager());
     $deskConfig = new DeskConfig();
     $deskConfig->setConfiguration(new Config(array('desk' => array('queue' => array('maxItemsToConsumePerRun' => self::MAX_TO_CONSUME)))));
     $controller->setDeskConfig($deskConfig);
     return $controller;
 }
示例#2
0
 public function testClientConfig()
 {
     $this->sut->setConfiguration(new ZendConfig(array(Config::KEY_DESK => array(Config::KEY_CLIENT => $expected = new \stdClass()))));
     $actual = $this->sut->getClientConfig();
     $this->assertSame($expected, $actual);
 }