Last modified: 2014-10-10 06:08:33 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
* 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 https://gerrit.wikimedia.org/r/134078