mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 15:17:16 +01:00
[ticket/14703] Improve exception testing
PHPBB3-14703
This commit is contained in:
parent
8e8e25cc1f
commit
557f85e7fc
@ -132,7 +132,11 @@ class phpbb_dbal_migrator_tool_module_test extends phpbb_database_test_case
|
|||||||
));
|
));
|
||||||
$this->fail('Exception not thrown');
|
$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
|
// Test adding module when plural parent module_langname exists
|
||||||
// PHPBB3-14703
|
// PHPBB3-14703
|
||||||
|
Loading…
x
Reference in New Issue
Block a user