Mglaser has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/359076 )
Change subject: Unittests: Cherrypicking from REL1_27 ...................................................................... Unittests: Cherrypicking from REL1_27 This test works with REL1_27 Change-Id: Id169ef909aac7839c8f2f6f81c7c897a7fba3d10 --- M tests/api/BSApiCategoryTreeStoreTest.php 1 file changed, 6 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation refs/changes/76/359076/1 diff --git a/tests/api/BSApiCategoryTreeStoreTest.php b/tests/api/BSApiCategoryTreeStoreTest.php index 37c5ef0..f9a7f15 100644 --- a/tests/api/BSApiCategoryTreeStoreTest.php +++ b/tests/api/BSApiCategoryTreeStoreTest.php @@ -11,6 +11,7 @@ */ class BSApiCategoryTreeStoreTest extends BSApiExtJSStoreTestBase { protected $iFixtureTotal = 2; + protected $tablesUsed = [ 'category', 'categorylinks', 'page' ]; protected function getStoreSchema() { return [ @@ -26,8 +27,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, @@ -48,7 +50,9 @@ 'page_title' => "Dummy test 2", 'page_namespace' => NS_CATEGORY ) ); + } + protected function createStoreFixtureData() { return 2; } -- To view, visit https://gerrit.wikimedia.org/r/359076 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id169ef909aac7839c8f2f6f81c7c897a7fba3d10 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