Mglaser has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/359072 )

Change subject: Unittests: cherrypicking changes from REL1_27
......................................................................

Unittests: cherrypicking changes from REL1_27

This test works with REL1_27

Change-Id: I9cad7142d854762936b3348ca14eed83424df40b
---
M tests/api/BSApiCategoryStoreTest.php
1 file changed, 6 insertions(+), 4 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/72/359072/1

diff --git a/tests/api/BSApiCategoryStoreTest.php 
b/tests/api/BSApiCategoryStoreTest.php
index 5792978..d8e4973 100644
--- a/tests/api/BSApiCategoryStoreTest.php
+++ b/tests/api/BSApiCategoryStoreTest.php
@@ -39,8 +39,9 @@
                ];
        }
 
-       protected function createStoreFixtureData() {
-               $oDbw = wfGetDB( DB_MASTER );
+       protected function setUp() {
+               parent::setUp();
+               $oDbw = $this->db;
                $oDbw->insert( 'category', array(
                        'cat_title' => "Dummy test",
                        'cat_pages' => 3,
@@ -61,7 +62,9 @@
                        'page_title' => "Dummy test 2",
                        'page_namespace' => NS_CATEGORY
                ) );
+       }
 
+       protected function createStoreFixtureData() {
                return 2;
        }
 
@@ -96,5 +99,4 @@
                        ]
                ];
        }
-}
-
+}
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9cad7142d854762936b3348ca14eed83424df40b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Mglaser <gla...@hallowelt.biz>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to