diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0106.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0106.json | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0106.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0106.json new file mode 100644 index 00000000..6e5a65ab --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0106.json @@ -0,0 +1,94 @@ +{ + "description": "Test `_txt`/`~` with enabled full-text search support on fixed user property (only enabled for MySQL, SQLite, `smwgFixedProperties`)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has fixed text", + "contents": "[[Has type::Text]]" + }, + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has fixed page", + "contents": "[[Has type::Page]]" + }, + { + "page": "Example/Q0106/1", + "contents": "{{#subobject: |Has fixed text=MySQL vs MariaDB database}} {{#subobject: |Has fixed text=Oracle vs MariaDB database}} {{#subobject: |Has fixed text=PostgreSQL vs MariaDB database and more of}} {{#subobject: |Has fixed text=MariaDB overview}}" + }, + { + "page": "Example/Q0106/2", + "contents": "{{#subobject: |Has fixed page=Elastic search}} {{#subobject: |Has fixed page=Sphinx search}}" + } + ], + "beforeTest": { + "maintenance-run": { + "rebuildData": { + "page": "Property:Has fixed text|Property:Has fixed page|Example/Q0106/1|Example/Q0106/2" + } + } + }, + "tests": [ + { + "type": "query", + "store": { + "clear-cache": true + }, + "about": "#0 on fixed blob user property", + "condition": "[[Has fixed text::~+MariaDB -database]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Example/Q0106/1#0##_29f6aa337d1dc1e2f79376c7940aeab3" + ] + } + }, + { + "type": "query", + "store": { + "clear-cache": true + }, + "about": "#1 on fixed page user property", + "condition": "[[Has fixed page::~*search*]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 2, + "results": [ + "Example/Q0106/2#0##_39c07b506d692088c97dc0d1cbfd67e6", + "Example/Q0106/2#0##_89e5e037d244e08b050101bb8ddb7768" + ] + } + } + ], + "settings": { + "smwgEnabledFulltextSearch": true, + "smwgFulltextDeferredUpdate": false, + "smwgFulltextSearchIndexableDataTypes": [ + "SMW_FT_BLOB", + "SMW_FT_URI", + "SMW_FT_WIKIPAGE" + ], + "smwgFixedProperties": [ + "Has_fixed_text", + "Has fixed page" + ] + }, + "meta": { + "skip-on": { + "postgres": "Fulltext not supported by PostgreSQL.", + "sesame": "Fulltext not supported by SPARQLStore (Sesame).", + "virtuoso": "Fulltext not supported by SPARQLStore (Virtuoso).", + "fuseki": "Fulltext not supported by SPARQLStore (Fuskei).", + "blazegraph": "Fulltext not supported by SPARQLStore (Blazegraph)." + }, + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |