[ticket/416] Add one method for moving modules horizontally

B3P-416
This commit is contained in:
Marc Alexander
2014-11-29 14:33:05 +01:00
parent 99c5b164d9
commit 3a2782b578
6 changed files with 109 additions and 145 deletions

View File

@@ -100,6 +100,7 @@ class modules_manager_confirm_box_test extends \board3\portal\tests\testframewor
), self::$meta_refresh);
$this->assertEquals(phpbb_acp_move_module_test::$error_type, E_USER_NOTICE);
$this->assertEquals(phpbb_acp_move_module_test::$error, 'adm/index.php?i=15&mode=foobar&module_id=6');
phpbb_acp_move_module_test::$override_trigger_error = false;
}
public function test_module_delete()
@@ -140,6 +141,7 @@ class modules_manager_confirm_box_test extends \board3\portal\tests\testframewor
$this->assertNull($this->modules_manager->module_delete(6, 'foobar', 'module_delete', 6));
$this->assertEquals(E_USER_NOTICE, phpbb_acp_move_module_test::$error_type);
$this->assertEquals('SUCCESS_DELETEadm/index.php?i=15&mode=foobar', phpbb_acp_move_module_test::$error);
phpbb_acp_move_module_test::$override_trigger_error = false;
}
}

View File

@@ -80,4 +80,10 @@ class board3_portal_modules_manager_test extends \board3\portal\tests\testframew
{
$this->assertNull($this->modules_manager->handle_ajax_request(array('foobar' => true)));
}
public function test_get_horizontal_move_action()
{
$this->setExpectedTriggerError(E_USER_NOTICE, 'UNABLE_TO_MOVE');
$this->modules_manager->get_horizontal_move_action(array(), 6);
}
}