[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

WikibaseLexeme CI broken due to Title constructor being private
Closed, ResolvedPublic

Description

The Title constructor was recently made private (CC @Daimona), which seems to have broken WikibaseLexeme’s CI.

Specifically, the following code:

/**                                                                                                                                                                      
 * @return Title|MockObject                                                                                                                                              
 */
private function getMockTitle() {
	return $this->getMockBuilder( Title::class )->getMock();
}

now throws an exception. Is there a suggested replacement?

Event Timeline

Restricted Application added a subscriber: kerberizer. · View Herald Transcript
Lucas_Werkmeister_WMDE renamed this task from Wikibglad that was useful at leastaseLexeme CI broken due to Title constructor being private to WikibaseLexeme CI broken due to Title constructor being private.Mar 16 2020, 6:50 PM
Lucas_Werkmeister_WMDE removed a subscriber: kerberizer.

Sorry, I messed up the title (and in such a way that it caused Herald to add an extra subscriber).

Sorry, I messed up the title (and in such a way that it caused Herald to add an extra subscriber).

Haha, no worries at all! ;)

Change 580111 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseLexeme@master] Fix LexemeContentTest for Title constructor being private

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

Meh, I thought these test-only errors would have been spotted by the wmf-gate jobs. Sorry for the breakage :(

Change 580111 merged by jenkins-bot:
[mediawiki/extensions/WikibaseLexeme@master] Fix LexemeContentTest for Title constructor being private

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