Brian Wolff has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/348994 )
Change subject: Set path globals in phpunit tests ...................................................................... Set path globals in phpunit tests Avoid differences in output due to different script paths on different mediawiki installs. Change-Id: I645cf123bdc608cfc0c819321cd1a28e00c0dfd0 --- M tests/phpunit/CollaborationHubContentTest.php 1 file changed, 8 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CollaborationKit refs/changes/94/348994/1 diff --git a/tests/phpunit/CollaborationHubContentTest.php b/tests/phpunit/CollaborationHubContentTest.php index 0c8d2ba..c8843ca 100644 --- a/tests/phpunit/CollaborationHubContentTest.php +++ b/tests/phpunit/CollaborationHubContentTest.php @@ -5,7 +5,13 @@ private $content; public function setUp() { - parent::setUp(); + $this->setMwGlobals( [ + 'wgServer' => 'http://localhost', + 'wgScriptPath' => '/wiki', + 'wgScript' => '/wiki/index.php', + 'wgArticlePath' => '/wiki/index.php/$1', + 'wgActionPaths' => [], + ] ); $content = new CollaborationHubContent( '{ "introduction": "Test content", "display_name": "foo",' . '"footer": "More test content", "colour": "khaki", "content": [' @@ -13,6 +19,7 @@ . '] }' ); $this->content = TestingAccessWrapper::newFromObject( $content ); + parent::setUp(); } /** -- To view, visit https://gerrit.wikimedia.org/r/348994 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I645cf123bdc608cfc0c819321cd1a28e00c0dfd0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CollaborationKit Gerrit-Branch: master Gerrit-Owner: Brian Wolff <bawolff...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits