SessionNamespaceTest: expect the correct exception

This commit is contained in:
Thomas Gelf 2014-09-04 18:38:39 +02:00
parent 3d170f90a5
commit 97cfeaa3df
1 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@
namespace Tests\Icinga\Web\Session;
use Exception;
use Mockery;
use Icinga\Test\BaseTestCase;
use Icinga\Web\Session\SessionNamespace;
@ -66,7 +65,7 @@ class SessionNamespaceTest extends BaseTestCase
}
/**
* @expectedException Exception
* @expectedException Icinga\Exception\IcingaException
*/
public function testFailingPropertyAccess()
{
@ -88,7 +87,7 @@ class SessionNamespaceTest extends BaseTestCase
}
/**
* @expectedException Exception
* @expectedException Icinga\Exception\IcingaException
* @expectedExceptionMessage Cannot save, session not set
*/
public function testInvalidParentWrite()