aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal/migrator_tool_module_test.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2016-08-28 21:36:49 +0700
committerrxu <rxu@mail.ru>2016-08-28 21:51:52 +0700
commit557f85e7fc3dc299859e846a8f406f0e19aaf465 (patch)
tree348e6f65584e5a207cd2ecec865a74c67bd8599b /tests/dbal/migrator_tool_module_test.php
parent8e8e25cc1f4f443f6ff945336f534217a5e4339e (diff)
downloadforums-557f85e7fc3dc299859e846a8f406f0e19aaf465.tar
forums-557f85e7fc3dc299859e846a8f406f0e19aaf465.tar.gz
forums-557f85e7fc3dc299859e846a8f406f0e19aaf465.tar.bz2
forums-557f85e7fc3dc299859e846a8f406f0e19aaf465.tar.xz
forums-557f85e7fc3dc299859e846a8f406f0e19aaf465.zip
[ticket/14703] Improve exception testing
PHPBB3-14703
Diffstat (limited to 'tests/dbal/migrator_tool_module_test.php')
-rw-r--r--tests/dbal/migrator_tool_module_test.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/dbal/migrator_tool_module_test.php b/tests/dbal/migrator_tool_module_test.php
index bf4ae0b1ee..49dff8b929 100644
--- a/tests/dbal/migrator_tool_module_test.php
+++ b/tests/dbal/migrator_tool_module_test.php
@@ -132,7 +132,11 @@ class phpbb_dbal_migrator_tool_module_test extends phpbb_database_test_case
));
$this->fail('Exception not thrown');
}
- catch (Exception $e) {}
+ catch (Exception $e)
+ {
+ $this->assertEquals('phpbb\db\migration\exception', get_class($e));
+ $this->assertEquals('MODULE_EXIST_MULTIPLE', $e->getMessage());
+ }
// Test adding module when plural parent module_langname exists
// PHPBB3-14703