jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/381828 )

Change subject: Add tests for mw.wikibase.get*Statements with no arbitrary 
access
......................................................................


Add tests for mw.wikibase.get*Statements with no arbitrary access

Change-Id: Id9954478589cfea2cfb6e97d197971cb1a6c06b9
---
M 
client/tests/phpunit/includes/DataAccess/Scribunto/LuaWikibaseLibraryNoArbitraryAccessTests.lua
1 file changed, 9 insertions(+), 1 deletion(-)

Approvals:
  jenkins-bot: Verified
  Thiemo Mättig (WMDE): Looks good to me, approved



diff --git 
a/client/tests/phpunit/includes/DataAccess/Scribunto/LuaWikibaseLibraryNoArbitraryAccessTests.lua
 
b/client/tests/phpunit/includes/DataAccess/Scribunto/LuaWikibaseLibraryNoArbitraryAccessTests.lua
index 1139818..849702a 100644
--- 
a/client/tests/phpunit/includes/DataAccess/Scribunto/LuaWikibaseLibraryNoArbitraryAccessTests.lua
+++ 
b/client/tests/phpunit/includes/DataAccess/Scribunto/LuaWikibaseLibraryNoArbitraryAccessTests.lua
@@ -13,7 +13,15 @@
        { name = "mw.wikibase.getEntityObject (foreign access)", func = 
mw.wikibase.getEntityObject,
          args = { 'Q42' },
          expect = 'Access to arbitrary items has been disabled.'
-       }
+       },
+       { name = "mw.wikibase.getBestStatements (foreign access)", func = 
mw.wikibase.getBestStatements,
+         args = { 'Q42', 'P12' },
+         expect = 'Access to arbitrary items has been disabled.'
+       },
+       { name = "mw.wikibase.getAllStatements (foreign access)", func = 
mw.wikibase.getAllStatements,
+         args = { 'Q42', 'P12' },
+         expect = 'Access to arbitrary items has been disabled.'
+       },
 }
 
 return testframework.getTestProvider( tests )

-- 
To view, visit https://gerrit.wikimedia.org/r/381828
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id9954478589cfea2cfb6e97d197971cb1a6c06b9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Lucie Kaffee <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to