Last modified: 2014-07-02 08:53:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69139, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67139 - BetaFeatures: Unit tests trigger notices in MobileFrontend
BetaFeatures: Unit tests trigger notices in MobileFrontend
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
BetaFeatures (Other open bugs)
unspecified
All All
: High minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 67216
  Show dependency treegraph
 
Reported: 2014-06-26 16:06 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-07-02 08:53 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Notice: Undefined index: skin in /extensions/MobileFrontend/includes/MobileFrontend.hooks.php on line 633 (1.75 KB, text/plain)
2014-06-26 16:06 UTC, Antoine "hashar" Musso (WMF)
Details
Warning: array_search() expects parameter 2 to be array, null given in /extensions/MobileFrontend/includes/MobileFrontend.hooks.php on line 633 (1.88 KB, text/plain)
2014-06-26 16:07 UTC, Antoine "hashar" Musso (WMF)
Details

Description Antoine "hashar" Musso (WMF) 2014-06-26 16:06:06 UTC
I have tried running phpunit unit tests with master versions of mw BetaFeatures and MobileFrontend and got a bunch of PHP notices.

Step to reproduce:

$ /bin/ls -1 extensions/
BetaFeatures
MobileFrontend
README

$ php tests/phpunit/phpunit.php extensions/BetaFeatures


Will attach traces
Comment 1 Antoine "hashar" Musso (WMF) 2014-06-26 16:06:55 UTC
Created attachment 15750 [details]
Notice: Undefined index: skin in /extensions/MobileFrontend/includes/MobileFrontend.hooks.php on line 633
Comment 2 Antoine "hashar" Musso (WMF) 2014-06-26 16:07:41 UTC
Created attachment 15751 [details]
Warning: array_search() expects parameter 2 to be array, null given in /extensions/MobileFrontend/includes/MobileFrontend.hooks.php on line 633
Comment 3 Antoine "hashar" Musso (WMF) 2014-06-30 14:08:42 UTC
We really need tests to pass when all wmf extensions are installed together. That is preventing us from progression toward the HHVM migrating. Raising priority to High.
Comment 4 James Forrester 2014-07-01 04:46:36 UTC
This is another false positive issue, because MobileFrontend and BetaFeatures can't run at the same time (Mobile doesn't use it), but let's get this fixed all the same.
Comment 5 Bartosz Dziewoński 2014-07-01 18:27:52 UTC
Fixed by https://gerrit.wikimedia.org/r/#/c/143042/ ?
Comment 6 Antoine "hashar" Musso (WMF) 2014-07-02 08:53:45 UTC
Indeed Bartosz, good catch!

Fixed up by https://gerrit.wikimedia.org/r/#/c/143042/

amusso@aeriale:/srv/trunk(masteru=)$ /bin/ls extensions/
APC		BetaFeatures	MobileFrontend	README		link_ext.sh	wmfexts
amusso@aeriale:/srv/trunk(masteru=)$ cd tests/phpunit/
/srv/trunk/tests/phpunit
amusso@aeriale:/srv/trunk/tests/phpunit(masteru=)$ php phpunit.php --testsuite extensions
PHPUnit 3.7.30 by Sebastian Bergmann.

Configuration read from /Users/amusso/projects/mediawiki/core/tests/phpunit/suite.xml

...............................................................  63 / 340 ( 18%)
............................................................... 126 / 340 ( 37%)
............................................................... 189 / 340 ( 55%)
............................................................... 252 / 340 ( 74%)
............................................................... 315 / 340 ( 92%)
.........................

Time: 6.61 seconds, Memory: 44.75Mb

OK (340 tests, 408 assertions)
amusso@aeriale:/srv/trunk/tests/phpunit(masteru=)$

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links