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

Change subject: API unittest: BSApiUploadLicenseStore
......................................................................


API unittest: BSApiUploadLicenseStore

Could not find a way to introduce more licenses.
Tried to edit MediaWiki:Licenses page to override default message content
Tried to set serveral globals related to messaging

If there is another method to override system message, we should try it

Change-Id: I90fc4ded6c5a3174fb6472f663672ef42b342fd7
ERM: #6560
---
A tests/api/BSApiUploadLicenseStoreTest.php
1 file changed, 76 insertions(+), 0 deletions(-)

Approvals:
  Mglaser: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/api/BSApiUploadLicenseStoreTest.php 
b/tests/api/BSApiUploadLicenseStoreTest.php
new file mode 100644
index 0000000..e7d335a
--- /dev/null
+++ b/tests/api/BSApiUploadLicenseStoreTest.php
@@ -0,0 +1,76 @@
+<?php
+
+/**
+ * @group medium
+ * @group api
+ * @group BlueSpice
+ * @group BlueSpiceFoundation
+ */
+class BSApiUploadLicenseStoreTest extends BSApiExtJSStoreTestBase {
+       protected $iFixtureTotal = 1;
+
+       protected function getStoreSchema() {
+               return [
+                       'text' => [
+                               'type' => 'string'
+                       ],
+                       'value' => [
+                               'type' => 'string'
+                       ],
+                       'indent' => [
+                               'type' => 'integer'
+                       ]
+               ];
+       }
+
+       protected function createStoreFixtureData() {
+               /*$oLicensesTitle = Title::makeTitle( NS_MEDIAWIKI, 'Licenses' 
);
+               $oWikiPage = WikiPage::factory( $oLicensesTitle );
+
+               $sLicenses = "* Dummy | Dummy license\n* Dummy2 | Dummy2 
license";
+               $oUser = User::newFromName( 'UTSysop' );
+               $oContent = ContentHandler::makeContent( $sLicenses, 
$oLicensesTitle );
+               $oWikiPage->doEditContent( $oContent, '', 0, false, $oUser );*/
+
+               return 1;
+       }
+
+       protected function getModuleName() {
+               return 'bs-upload-license-store';
+       }
+
+       public function provideSingleFilterData() {
+               return [
+                       'Filter by text' => [ 'string', 'ct', 'text', 'None', 1 
]
+               ];
+       }
+
+       public function provideMultipleFilterData() {
+               return [
+                       'Filter by indent and text' => [
+                               [
+                                       [
+                                               'type' => 'string',
+                                               'comparison' => 'ct',
+                                               'field' => 'text',
+                                               'value' => 'none'
+                                       ],
+                                       [
+                                               'type' => 'numeric',
+                                               'comparison' => 'eq',
+                                               'field' => 'indent',
+                                               'value' => 0
+                                       ]
+                               ],
+                               1
+                       ]
+               ];
+       }
+
+       public function provideKeyItemData() {
+               return array(
+                       [ 'text', 'None selected' ]
+               );
+       }
+}
+

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I90fc4ded6c5a3174fb6472f663672ef42b342fd7
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman <[email protected]>
Gerrit-Reviewer: Ljonka <[email protected]>
Gerrit-Reviewer: Mglaser <[email protected]>
Gerrit-Reviewer: Pwirth <[email protected]>
Gerrit-Reviewer: Robert Vogel <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to