Skip to content

Commit 5f4b793

Browse files
author
Deploy
committed
test: added rawRequest test
1 parent 394fd43 commit 5f4b793

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/ArangoClientTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@
111111
expect($result->version)->toBeString();
112112
});
113113

114+
115+
test('rawRequest', function () {
116+
$response = $this->arangoClient->rawRequest('get', '/_api/version', []);
117+
118+
expect($response->getStatusCode())->toBe(200);
119+
expect($response->getHeader('Connection')[0])->toBe('Keep-Alive');
120+
});
121+
114122
test('get user', function () {
115123
$user = $this->arangoClient->getUser();
116124
expect($user)->toBe('root');

0 commit comments

Comments
 (0)