function testEditbannerType() { // Test the banner type details modification edit_banner_type($this->banner_type, $this->banner_type, 0, 200, 100, 100, 0); //Test the width is updated to 200 for the banner "Welcome" $this->assertTrue(200 == $GLOBALS['FORUM_DB']->query_value('banner_types', 't_image_width', array('id' => $this->banner_type))); }
/** * Standard aed_module edit actualiser. * * @param ID_TEXT The entry being edited * @return tempcode Description about usage */ function edit_actualisation($id) { $is_textual = post_param_integer('is_textual', 0); $image_width = post_param_integer('image_width'); $image_height = post_param_integer('image_height'); $max_file_size = post_param_integer('max_file_size'); $comcode_inline = post_param_integer('comcode_inline', 0); edit_banner_type($id, post_param('new_id'), $is_textual, $image_width, $image_height, $max_file_size, $comcode_inline); $this->new_id = post_param('new_id'); return do_lang_tempcode('ADD_BANNER_TEMPLATING'); }