mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 06:14:25 +02:00
SessionNamespaceTest: expect the correct exception
This commit is contained in:
parent
3d170f90a5
commit
97cfeaa3df
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
namespace Tests\Icinga\Web\Session;
|
namespace Tests\Icinga\Web\Session;
|
||||||
|
|
||||||
use Exception;
|
|
||||||
use Mockery;
|
use Mockery;
|
||||||
use Icinga\Test\BaseTestCase;
|
use Icinga\Test\BaseTestCase;
|
||||||
use Icinga\Web\Session\SessionNamespace;
|
use Icinga\Web\Session\SessionNamespace;
|
||||||
@ -66,7 +65,7 @@ class SessionNamespaceTest extends BaseTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException Exception
|
* @expectedException Icinga\Exception\IcingaException
|
||||||
*/
|
*/
|
||||||
public function testFailingPropertyAccess()
|
public function testFailingPropertyAccess()
|
||||||
{
|
{
|
||||||
@ -88,7 +87,7 @@ class SessionNamespaceTest extends BaseTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException Exception
|
* @expectedException Icinga\Exception\IcingaException
|
||||||
* @expectedExceptionMessage Cannot save, session not set
|
* @expectedExceptionMessage Cannot save, session not set
|
||||||
*/
|
*/
|
||||||
public function testInvalidParentWrite()
|
public function testInvalidParentWrite()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user