Page MenuHomePhabricator

Unit test, using WikiImporter fails to create templatedata
Open, LowPublic


While trying to import the Artwork Template for a GWToolset test it imports the template, but does not create the TemplateData for the template. I haven't been able to sort out yet if the problem is in the way i have setup the test or something else. The test attempts to mimic the way Special:Import imports a template file, but uses ImportStreamSource::newFromFile instead of ImportStreamSource::newFromUpload

steps to reproduce

  1. in a local wiki make sure you don't have the Template:Artwork
  2. checkout this version of GWToolset
  3. run the test core/tests/phpunit/phpunit.php core/extensions/GWToolset/tests/phpunit/

If you import the template with Special:Import and then run the test there is no issue because Special:Import also creates the TemplateData

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:27 AM
bzimport set Reference to bz69241.
bzimport added a subscriber: Unknown Object (MLST).
dan-nl created this task.Aug 7 2014, 2:25 PM
  • tried to use the api to purge the cache ( did not fix the issue )
  • tried content handler edit of the template after import ( did not fix the issue )

Change 134078 had a related patch set uploaded by Dan-nl:
Add title tests

Gilles triaged this task as Low priority.Nov 24 2014, 1:25 PM
Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 6:09 PM
Restricted Application added subscribers: Matanya, Aklapper. · View Herald TranscriptSep 4 2015, 6:09 PM

Change 134078 abandoned by MarkTraceur:
Add title tests

Per Dan

Restricted Application added a project: Commons. · View Herald TranscriptJan 27 2017, 10:19 PM