Pp3345 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/96475


Change subject: Fixed PHPUnit test for SF_FormPrinter
......................................................................

Fixed PHPUnit test for SF_FormPrinter

Bug: 57199
Change-Id: I2c32e0495f8eb461cee097fc5639574b3ebde895
---
M tests/phpunit/includes/SF_FormPrinterTest.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms 
refs/changes/75/96475/1

diff --git a/tests/phpunit/includes/SF_FormPrinterTest.php 
b/tests/phpunit/includes/SF_FormPrinterTest.php
index 7d1edad..91a10e0 100644
--- a/tests/phpunit/includes/SF_FormPrinterTest.php
+++ b/tests/phpunit/includes/SF_FormPrinterTest.php
@@ -13,10 +13,11 @@
         */
        public function testPageSectionsWithoutExistingPages( $setup, $expected 
) {
 
-               global $sfgFormPrinter, $wgTitle, $wgParser;
+               global $sfgFormPrinter, $wgTitle, $wgParser, $wgOut;
 
                $wgParser = $this->getParser();
                $wgTitle = $this->getTitle();
+               $wgOut->getContext()->setTitle( $wgTitle );
 
                list ( $form_text, $javascript_text, $data_text, 
$form_page_title, $generated_page_name ) =
                        $sfgFormPrinter->formHTML( $setup['form_definition'], 
null, false, null, null, 'TestStringForFormPageTitle', null );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2c32e0495f8eb461cee097fc5639574b3ebde895
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Pp3345 <[email protected]>

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

Reply via email to