jenkins-bot has submitted this change and it was merged. ( 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(-) Approvals: Mglaser: Looks good to me, approved jenkins-bot: Verified 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: merged Gerrit-Change-Id: Id169ef909aac7839c8f2f6f81c7c897a7fba3d10 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation Gerrit-Branch: master Gerrit-Owner: Mglaser <gla...@hallowelt.biz> Gerrit-Reviewer: Ljonka <l.verhovs...@gmail.com> Gerrit-Reviewer: Mglaser <gla...@hallowelt.biz> Gerrit-Reviewer: Pwirth <wi...@hallowelt.biz> Gerrit-Reviewer: Robert Vogel <vo...@hallowelt.biz> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits