From 70d61a1ece389d94c1f9675d4b3ea53b051e9a77 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Tue, 7 Sep 2021 12:10:29 +0000
Subject: [PATCH] Database: cover new getDriver method

---
 tests/lib/SimpleSAML/DatabaseTest.php | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/lib/SimpleSAML/DatabaseTest.php b/tests/lib/SimpleSAML/DatabaseTest.php
index cfafb15cd..b3305ab43 100644
--- a/tests/lib/SimpleSAML/DatabaseTest.php
+++ b/tests/lib/SimpleSAML/DatabaseTest.php
@@ -222,6 +222,13 @@ class DatabaseTest extends TestCase
         $this->assertEquals($prefix . $table, $pftable, "Did not properly apply the table prefix");
     }
 
+    /**
+     * @test
+     */
+    public function testGetDriver(): void
+    {
+        $this->assertEquals('sqlite', $this->db->getDriver());
+    }
 
     /**
      * @test
-- 
GitLab