Skip to content

Commit

Permalink
Loosened exact error message matching to deal with us probably a vers…
Browse files Browse the repository at this point in the history
…ion differences
  • Loading branch information
LaravelFreelancerNL committed Sep 18, 2024
1 parent 557a931 commit 7a8cb16
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/QueryExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,8 @@
});

test('query exception has correct message', function () {
$this->expectExceptionMessage(
"400 - AQL: syntax error, unexpected identifier near 'this is not AQL' at position 1:1 (while parsing)"
. " (Connection: arangodb,AQL: this is not AQL - Bindings: array (\n"
. " 'testBind' => 'test',\n))",
);

DB::execute('this is not AQL', ['testBind' => 'test']);
});
})->throws(QueryException::class, 'this is not AQL');

test('query exception without binds', function () {
expect(fn() => DB::execute("this is not AQL", []))->toThrow(QueryException::class);
Expand Down

0 comments on commit 7a8cb16

Please sign in to comment.