[go: up one dir, main page]

Page MenuHomePhabricator

Rework database setup in integration test to avoid dynamic properties under php8.2
Closed, ResolvedPublic

Description

MediaWikiIntegrationTestCase::setupDatabaseWithTestPrefix (declaring _originalTablePrefix) and MediaWikiIntegrationTestCase::oncePerClass (declaring $_hasDataForTestClass) needs another way to store information

PHP Deprecated:  Creation of dynamic property Wikimedia\Rdbms\DatabaseMysqli::$_originalTablePrefix is deprecated in /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php on line 1683
PHP Deprecated:  Creation of dynamic property Wikimedia\Rdbms\DatabaseMysqli::$_hasDataForTestClass is deprecated in /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php on line 533

Event Timeline

In MediaWikiIntegrationTestCase::setUpSchema is also property _schemaOverrides created dynamically

Change 888315 had a related patch set uploaded (by TK-999; author: TK-999):

[mediawiki/core@master] Introduce and use DynamicPropertyTestHelper

https://gerrit.wikimedia.org/r/888315

Change 888315 merged by jenkins-bot:

[mediawiki/core@master] Introduce and use DynamicPropertyTestHelper

https://gerrit.wikimedia.org/r/888315

Change #1017402 had a related patch set uploaded (by Reedy; author: TK-999):

[mediawiki/core@REL1_41] Introduce and use DynamicPropertyTestHelper

https://gerrit.wikimedia.org/r/1017402

Change #1017402 merged by jenkins-bot:

[mediawiki/core@REL1_41] Introduce and use DynamicPropertyTestHelper

https://gerrit.wikimedia.org/r/1017402

Change #1017430 had a related patch set uploaded (by Reedy; author: TK-999):

[mediawiki/core@REL1_40] Introduce and use DynamicPropertyTestHelper

https://gerrit.wikimedia.org/r/1017430

Change #1017437 had a related patch set uploaded (by Reedy; author: TK-999):

[mediawiki/core@REL1_39] Introduce and use DynamicPropertyTestHelper

https://gerrit.wikimedia.org/r/1017437

Change #1017437 merged by jenkins-bot:

[mediawiki/core@REL1_39] Introduce and use DynamicPropertyTestHelper

https://gerrit.wikimedia.org/r/1017437

Change #1017430 merged by jenkins-bot:

[mediawiki/core@REL1_40] Introduce and use DynamicPropertyTestHelper

https://gerrit.wikimedia.org/r/1017430