function testEditpost_template() { // Test the forum edits ocf_edit_post_template($this->post_id, 'Tested Post', 'Hello', 'Nothing', 1); // Test the forum was actually created $this->assertTrue('Tested Post' == $GLOBALS['FORUM_DB']->query_value('f_post_templates', 't_title ', array('id' => $this->post_id))); }
function testEditPostTemplate() { // Test the forum edits ocf_edit_post_template($this->template_id, 'test_template2', 'test', '+1', 1); // Test the forum was actually created $this->assertTrue('test_template2' == $GLOBALS['FORUM_DB']->query_value('f_post_templates', 't_title ', array('id' => $this->template_id))); }
/** * Standard aed_module edit actualiser. * * @param ID_TEXT The entry being edited */ function edit_actualisation($id) { ocf_edit_post_template(intval($id), post_param('title'), post_param('text'), read_multi_code('forum_multi_code'), post_param_integer('use_default_forums', 0)); }