public function testModel() { $config = array('pageCategories' => array('main' => 'Hauptmenü', 'bottom' => 'Unten')); $model = new Kwc_Root_CategoryModel($config); $this->assertEquals($model->getRow('main')->id, 'main'); $this->assertEquals($model->getRow('bottom')->name, 'Unten'); $this->assertEquals($model->countRows(), 2); }
public function __construct($config = array()) { $config['pageCategories'] = array('main' => 'Main'); parent::__construct($config); }