Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scite-14-fixed-property-query.json for MW 1.39+ #135

Open
paladox opened this issue Dec 30, 2024 · 0 comments
Open

Fix scite-14-fixed-property-query.json for MW 1.39+ #135

paladox opened this issue Dec 30, 2024 · 0 comments

Comments

@paladox
Copy link
Contributor

paladox commented Dec 30, 2024

1) SCI\Tests\Integration\JSONScript\SemanticCiteJsonTestCaseScriptRunnerTest::testCaseFile with data set "scite-14-fixed-property-query.json" ('/var/www/html/extensions/Sema...y.json')
Failed "#0 non display formatted query output"

==== (actual) ====
<div class="mw-parser-output"><p>{{#ask:<span class="smw-highlighter" data-type="4" data-state="inline" data-title="Warning" title="&quot;~*M114.559054&quot; is an invalid value for the DOI type."><span class="smwtticon warning"></span><span class="smwttcontent">"~*M114.559054" is an invalid value for the DOI type.</span></span>|?DOI|format=table}}
</p></div>
==== (StringContains expected) ====
[ <td class="DOI smwtype_sci_doi"><span class="plainlinks"><a rel="nofollow" class="external text" href="https://doi.org/10.1074%2Fjbc.m114.559054">10.1074/jbc.m114.559054</a></span></td> ]

Failed asserting that 0 matches expected 1.

/var/www/html/extensions/SemanticCite/extensions/SemanticMediaWiki/tests/phpunit/Utils/Validators/StringValidator.php:82
/var/www/html/extensions/SemanticCite/extensions/SemanticMediaWiki/tests/phpunit/Utils/Validators/StringValidator.php:33
/var/www/html/extensions/SemanticCite/tests/phpunit/Integration/JSONScript/SemanticCiteJsonTestCaseScriptRunnerTest.php:214
/var/www/html/extensions/SemanticCite/tests/phpunit/Integration/JSONScript/SemanticCiteJsonTestCaseScriptRunnerTest.php:149
/var/www/html/extensions/SemanticCite/extensions/SemanticMediaWiki/tests/phpunit/JSONScriptTestCaseRunner.php:231
/var/www/html/tests/phpunit/MediaWikiIntegrationTestCase.php:500
/var/www/html/extensions/SemanticCite/extensions/SemanticMediaWiki/tests/phpunit/SMWIntegrationTestCase.php:205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant