Skip to content

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

@paladox

Description

@paladox
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions