Last modified: 2014-10-10 06:08:33 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 T71241, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69241 - Unit test, using WikiImporter fails to create templatedata
Unit test, using WikiImporter fails to create templatedata
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
GWToolset (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-07 14:25 UTC by dan
Modified: 2014-10-10 06:08 UTC (History)
8 users (show)

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


Attachments

Description dan 2014-08-07 14:25:22 UTC
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 https://gerrit.wikimedia.org/r/#/c/134078/
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
Comment 1 dan 2014-08-12 15:24:32 UTC
* 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 )
Comment 2 Gerrit Notification Bot 2014-09-23 02:08:12 UTC
Change 134078 had a related patch set uploaded by Dan-nl:
Add title tests

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

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


Navigation
Links