aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/integration/includes/db/DatabasePostgresTest.php
diff options
context:
space:
mode:
authorAmir Sarabadani <ladsgroup@gmail.com>2023-02-23 18:56:12 +0100
committerLadsgroup <Ladsgroup@gmail.com>2023-02-23 17:59:54 +0000
commit7ffd35ecc6c78ff30bca2e8b03529eb9c0f76429 (patch)
treec98ea1ab3a7ca56b1c79f7417781860c3a5e773f /tests/phpunit/integration/includes/db/DatabasePostgresTest.php
parent5e2a43166c595894462092d650b0e9d09dfee8d2 (diff)
downloadmediawikicore-7ffd35ecc6c78ff30bca2e8b03529eb9c0f76429.tar.gz
mediawikicore-7ffd35ecc6c78ff30bca2e8b03529eb9c0f76429.zip
rdbms: Remove Database::attributesFromType and hard-deprecate ::factory
They have been soft-deprecated since 1.39 and the first one is not used anywhere, ::factory is used in some third party code but not in Wikimedia-deployed ones Change-Id: Icd0f743d9c76554dd02471485ee732e25b9fb932
Diffstat (limited to 'tests/phpunit/integration/includes/db/DatabasePostgresTest.php')
-rw-r--r--tests/phpunit/integration/includes/db/DatabasePostgresTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/phpunit/integration/includes/db/DatabasePostgresTest.php b/tests/phpunit/integration/includes/db/DatabasePostgresTest.php
index 002ea0a261e1..60a13d1b252f 100644
--- a/tests/phpunit/integration/includes/db/DatabasePostgresTest.php
+++ b/tests/phpunit/integration/includes/db/DatabasePostgresTest.php
@@ -188,8 +188,9 @@ class DatabasePostgresTest extends MediaWikiIntegrationTestCase {
* @covers \Wikimedia\Rdbms\DatabasePostgres::getAttributes
*/
public function testAttributes() {
+ $dbFactory = $this->getServiceContainer()->getDatabaseFactory();
$this->assertTrue(
- Database::attributesFromType( 'postgres' )[Database::ATTR_SCHEMAS_AS_TABLE_GROUPS]
+ $dbFactory->attributesFromType( 'postgres' )[Database::ATTR_SCHEMAS_AS_TABLE_GROUPS]
);
}
}