mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Change accepted exception type of unit test
Change the generic type Exception to a more specific one, to achieve a more accurate test case. resolves #4503
This commit is contained in:
parent
9799f4beab
commit
3ce44b72e1
@ -125,7 +125,7 @@ class DbAdapterFactoryTest extends \PHPUnit_Framework_TestCase {
|
|||||||
/**
|
/**
|
||||||
* Test if an exception is thrown, when an invalid database is used.
|
* Test if an exception is thrown, when an invalid database is used.
|
||||||
*
|
*
|
||||||
* @expectedException \Exception
|
* @expectedException Icinga\Exception\ConfigurationError
|
||||||
*/
|
*/
|
||||||
public function testGetInvalidDatabase()
|
public function testGetInvalidDatabase()
|
||||||
{
|
{
|
||||||
@ -135,7 +135,7 @@ class DbAdapterFactoryTest extends \PHPUnit_Framework_TestCase {
|
|||||||
/**
|
/**
|
||||||
* Test if an exception is thrown, when an invalid type is used.
|
* Test if an exception is thrown, when an invalid type is used.
|
||||||
*
|
*
|
||||||
* @expectedException \Exception
|
* @expectedException Icinga\Exception\ConfigurationError
|
||||||
*/
|
*/
|
||||||
public function testGetInvalidType()
|
public function testGetInvalidType()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user