Skip to content

Commit db2a97d

Browse files
committed
added invalid run retry test
1 parent feb3a5c commit db2a97d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Integration/ClientIntegrationTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,22 @@ public function testInvalidRun(string $alias): void
148148
self::assertTrue($exception);
149149
}
150150

151+
/**
152+
* @dataProvider connectionAliases
153+
*/
154+
public function testInvalidRunRetry(string $alias): void
155+
{
156+
$exception = false;
157+
try {
158+
$this->getClient()->run('MERGE (x:Tes0342hdm21.())', ['test' => 'a', 'otherTest' => 'b'], $alias);
159+
} catch (Neo4jException $e) {
160+
$exception = true;
161+
}
162+
self::assertTrue($exception);
163+
164+
$this->getClient()->run('RETURN 1 AS one');
165+
}
166+
151167
/**
152168
* @dataProvider connectionAliases
153169
*/

0 commit comments

Comments
 (0)