Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit 306513a

Browse files
author
Stefan Gehrig
committed
updates the transaction exception test to match new exception handling
1 parent 8a5c2eb commit 306513a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Integration/TransactionIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ public function testTransactionIsRolledBackInCaseOfExceptionWithBolt()
106106
try {
107107
$result = $tx->run('CREATE (n:Test) RETURN x');
108108
$this->assertEquals(1, 2); // If we reached here then there is a bug
109-
} catch (MessageFailureException $e) {
110-
$this->assertEquals(1, 1);
109+
} catch (Neo4jException $e) {
110+
$this->assertEquals(Neo4jExceptionInterface::EFFECT_ROLLBACK, $e->effect());
111111
}
112112
//$this->assertEquals(Transaction::ROLLED_BACK, $tx->status());
113113
$this->assertXNodesWithLabelExist('Test', 0);

0 commit comments

Comments
 (0)