panel = new SqlLogPanel(); } /** * test the parsing of source list. * * @return void */ public function testBeforeRender() { $Article = ClassRegistry::init('Article'); $Article->find('first', array('conditions' => array('Article.id' => 1))); $controller = new Controller(); $result = $this->panel->beforeRender($controller); $this->assertTrue(isset($result['connections'][$Article->useDbConfig])); $this->assertTrue(isset($result['threshold'])); } }