aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/AdapterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/DB/AdapterTest.php')
-rw-r--r--tests/lib/DB/AdapterTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/DB/AdapterTest.php b/tests/lib/DB/AdapterTest.php
index 99b7cf4e099..2fc7c5089a3 100644
--- a/tests/lib/DB/AdapterTest.php
+++ b/tests/lib/DB/AdapterTest.php
@@ -6,6 +6,8 @@
namespace Test\DB;
+use OCP\IDBConnection;
+use OCP\Server;
use Test\TestCase;
class AdapterTest extends TestCase {
@@ -13,7 +15,7 @@ class AdapterTest extends TestCase {
private $connection;
public function setUp(): void {
- $this->connection = \OC::$server->getDatabaseConnection();
+ $this->connection = Server::get(IDBConnection::class);
$this->appId = uniqid('test_db_adapter', true);
}