Hashar has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/350015 )

Change subject: Disable parser tests for categories count
......................................................................

Disable parser tests for categories count

When inserting article, MediaWiki core uses a dummy parser that does not
process link.  The parser tests having [[Category:test pages]] ends up
being broken because the dummy parser does not attach the created
article to a category (wikilins are skippd, the category is not added to
'categorylinks').

The dummy parser in MediaWiki is 65b732f29.

Until a workaround is available, disable two parser tests:

 WCategory->pageCount Test pages
 WCategory->subcatCount

Bug: T163733
Change-Id: I38da5a61d52dc6cd282997896688e39803caa895
---
M tests/parser/PhpTagsWikiTests.txt
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PhpTagsWiki 
refs/changes/15/350015/1

diff --git a/tests/parser/PhpTagsWikiTests.txt 
b/tests/parser/PhpTagsWikiTests.txt
index eeb6561..ee60b83 100644
--- a/tests/parser/PhpTagsWikiTests.txt
+++ b/tests/parser/PhpTagsWikiTests.txt
@@ -83,6 +83,8 @@
 
 !! test
 WCategory->pageCount Test pages
+!! options
+disabled MediaWiki core uses a dummy parser when inserting articles. T163733
 !! input
 <phptag>
 $c = new WCategory( 'Test pages' );
@@ -95,6 +97,8 @@
 
 !! test
 WCategory->subcatCount
+!! options
+disabled MediaWiki core uses a dummy parser when inserting articles. T163733
 !! input
 <phptag>
 $c = new WCategory( 'Test categories' );

-- 
To view, visit https://gerrit.wikimedia.org/r/350015
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I38da5a61d52dc6cd282997896688e39803caa895
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PhpTagsWiki
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to