Skip to content

Commit efa48ab

Browse files
committed
expect correct exception. fix #77
1 parent 6ef74d5 commit efa48ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/10_Writing/CombinedManipulationsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -611,15 +611,15 @@ public function testRemoveOtherSessionRefreshKeepChanges()
611611
try {
612612
$childprop->getValue();
613613
$this->fail('Should not be possible to get the value of a deleted property');
614-
} catch(\PHPCR\RepositoryException $e) {
614+
} catch(\PHPCR\InvalidItemStateException $e) {
615615
//expected
616616
}
617617

618618
$this->assertTrue($session->hasPendingChanges());
619619
try {
620620
$child->getPath();
621621
$this->fail('getting the path of deleted child should throw exception');
622-
} catch(\PHPCR\RepositoryException $e) {
622+
} catch(\PHPCR\InvalidItemStateException $e) {
623623
// expected
624624
}
625625
$this->assertFalse($node->hasProperty('prop'));

0 commit comments

Comments
 (0)