Skip to content

Commit 1319358

Browse files
author
Deploy
committed
test: improved test
1 parent 0c435a3 commit 1319358

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/ExceptionsTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
declare(strict_types=1);
44

5+
use ArangoClient\Exceptions\ArangoException;
6+
57
uses(Tests\TestCase::class);
68

79
test('test409 conflict exception', function () {
@@ -18,6 +20,7 @@
1820

1921
test('calls to none existing db throw', function () {
2022
$this->arangoClient->setDatabase('NoneExistingDb');
21-
$this->expectExceptionCode(404);
2223
$this->schemaManager->hasCollection('dummy');
23-
});
24+
25+
$this->arangoClient->setDatabase($this->testDatabaseName);
26+
})->throws(ArangoException::class);

0 commit comments

Comments
 (0)