SessionNamespaceTest: expect the correct exception

This commit is contained in:
Thomas Gelf 2014-09-04 18:38:39 +02:00
parent 3d170f90a5
commit 97cfeaa3df

View File

@ -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()