From 2c08318ee4f7450faaf82107c1e9371e411e658e Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 24 Nov 2013 01:18:38 +0100 Subject: [PATCH] [tests/portal_acp] Test if acp portal pages show without errors --- tests/functional/portal_acp_test.php | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/functional/portal_acp_test.php diff --git a/tests/functional/portal_acp_test.php b/tests/functional/portal_acp_test.php new file mode 100644 index 00000000..e6fd3a55 --- /dev/null +++ b/tests/functional/portal_acp_test.php @@ -0,0 +1,39 @@ +login(); + $this->admin_login(); + $this->enable_board3_portal_ext(); + } + + public function acp_pages_data() + { + return array( + array('config'), + array('modules'), + array('upload_module'), + ); + } + + /** + * @dataProvider acp_pages_data + */ + public function test_acp_pages($mode) + { + $crawler = self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=' . $mode . '&sid=' . $this->sid); + } +}