コード例 #1
0
 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
ファイル: ConfigTest.php プロジェクト: kkucera/XssModule
 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);
 }