Thiemo Mättig (WMDE) has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/394961 )

Change subject: Test for HTML anchors on Special:ListDatatypes
......................................................................

Test for HTML anchors on Special:ListDatatypes

Bug: T181371
Change-Id: If7e1e18138190c7ee7c24e3cd0d8c5bb322dd360
---
M repo/tests/phpunit/includes/Specials/SpecialListDatatypesTest.php
1 file changed, 2 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/61/394961/1

diff --git a/repo/tests/phpunit/includes/Specials/SpecialListDatatypesTest.php 
b/repo/tests/phpunit/includes/Specials/SpecialListDatatypesTest.php
index 4ebf229..6a8e48e 100644
--- a/repo/tests/phpunit/includes/Specials/SpecialListDatatypesTest.php
+++ b/repo/tests/phpunit/includes/Specials/SpecialListDatatypesTest.php
@@ -2,7 +2,6 @@
 
 namespace Wikibase\Repo\Tests\Specials;
 
-use Language;
 use MediaWiki\MediaWikiServices;
 use SpecialPageTestBase;
 use Wikibase\Repo\Specials\SpecialListDatatypes;
@@ -23,9 +22,6 @@
        protected function setUp() {
                parent::setUp();
 
-               $this->setMwGlobals( [
-                       'wgContLang' => Language::factory( 'qqx' )
-               ] );
                $services = MediaWikiServices::getInstance();
                $services->resetServiceForTesting( 'TitleFormatter' );
                $services->resetServiceForTesting( 'TitleParser' );
@@ -48,13 +44,13 @@
        public function testExecute() {
                // This also tests that there is no fatal error, that the 
restriction handling is working
                // and doesn't block. That is, the default should let the user 
execute the page.
-               list( $output, ) = $this->executeSpecialPage( '' );
+               list( $output, ) = $this->executeSpecialPage( '', null, 'qqx' );
 
                $this->assertInternalType( 'string', $output );
                $this->assertContains( 'wikibase-listdatatypes-summary', 
$output );
                $this->assertContains( 'wikibase-listdatatypes-intro', $output 
);
 
-               $this->assertContains( 'wikibase-item', $output );
+               $this->assertContains( 'id="wikibase-item"', $output );
                $this->assertContains( 'wikibase-listdatatypes-listproperties', 
$output );
                $this->assertContains( 'Special:ListProperties/wikibase-item', 
$output );
        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If7e1e18138190c7ee7c24e3cd0d8c5bb322dd360
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>

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

Reply via email to