diff options
author | Joas Schilling <coding@schilljs.com> | 2024-07-01 16:59:47 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-07-19 11:21:14 +0200 |
commit | 829f2b9bc7290c0b1b1a9db373ee26199c9bcc4d (patch) | |
tree | 5641e35ffe42897566f58acb1d71a0d9afba4729 /apps/settings/tests | |
parent | bd383627a7ef3cb0a8e608b35de067d341f46da4 (diff) | |
download | nextcloud-server-829f2b9bc7290c0b1b1a9db373ee26199c9bcc4d.tar.gz nextcloud-server-829f2b9bc7290c0b1b1a9db373ee26199c9bcc4d.zip |
fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of removed upstream platforms
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings/tests')
-rw-r--r-- | apps/settings/tests/SetupChecks/SupportedDatabaseTest.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/settings/tests/SetupChecks/SupportedDatabaseTest.php b/apps/settings/tests/SetupChecks/SupportedDatabaseTest.php index 2492379b557..0ba1621c5fe 100644 --- a/apps/settings/tests/SetupChecks/SupportedDatabaseTest.php +++ b/apps/settings/tests/SetupChecks/SupportedDatabaseTest.php @@ -8,7 +8,6 @@ declare(strict_types=1); */ namespace OCA\Settings\Tests; -use Doctrine\DBAL\Platforms\SqlitePlatform; use OCA\Settings\SetupChecks\SupportedDatabase; use OCP\IDBConnection; use OCP\IL10N; @@ -41,8 +40,7 @@ class SupportedDatabaseTest extends TestCase { } public function testPass(): void { - $platform = $this->connection->getDatabasePlatform(); - if ($platform instanceof SqlitePlatform) { + if ($this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_SQLITE) { /** SQlite always gets a warning */ $this->assertEquals(SetupResult::WARNING, $this->check->run()->getSeverity()); } else { |