/** * set up environment */ public function setUp() { parent::setUp(); parent::_doLogin(Users_Model_User::ROLE_ADMIN); $data = array('id' => 666, 'title' => 'Test' . date('Y-m-d H:i:s'), 'alias' => 'test', 'content' => '<p>Content, content, content</p>', 'user_id' => 1, 'pid' => 1); $manager = new Pages_Model_Page_Table(); // Insert record to DB $page = $manager->createRow($data); $page->save(); }
/** * Setup TestCase */ public function setUp() { parent::setUp(); parent::_doLogin(Users_Model_User::ROLE_ADMIN); }