mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 01:39:30 +02:00
Fix namespace spelling.
This commit is contained in:
@ -207,9 +207,9 @@ class LinkTitlesLinkerTest extends LinkTitles\TestCase {
|
|||||||
// a custom namespace during testing. (The assertTrue assertion below fails.)
|
// a custom namespace during testing. (The assertTrue assertion below fails.)
|
||||||
|
|
||||||
// /**
|
// /**
|
||||||
// * @dataProvider provideLinkContentNameSpacesData
|
// * @dataProvider provideLinkContentNamespacesData
|
||||||
// */
|
// */
|
||||||
// public function testLinkContentNameSpaces( $nameSpaces, $input, $expectedOutput ) {
|
// public function testLinkContentNamespaces( $namespaces, $input, $expectedOutput ) {
|
||||||
// $ns = 4000;
|
// $ns = 4000;
|
||||||
// $this->setMwGlobals( [
|
// $this->setMwGlobals( [
|
||||||
// "wgExtraNamespaces[$ns]" => 'custom_namespace'
|
// "wgExtraNamespaces[$ns]" => 'custom_namespace'
|
||||||
@ -222,22 +222,22 @@ class LinkTitlesLinkerTest extends LinkTitles\TestCase {
|
|||||||
// $this->assertTrue( MWNamespace::exists( $ns ), "The name space with id $ns should exist!" );
|
// $this->assertTrue( MWNamespace::exists( $ns ), "The name space with id $ns should exist!" );
|
||||||
// LinKTitles\Targets::invalidate();
|
// LinKTitles\Targets::invalidate();
|
||||||
// $config = new LinkTitles\Config();
|
// $config = new LinkTitles\Config();
|
||||||
// $config->nameSpaces = $nameSpaces;
|
// $config->namespaces = $namespaces;
|
||||||
// $linker = new LinkTitles\Linker( $config );
|
// $linker = new LinkTitles\Linker( $config );
|
||||||
// $this->assertSame( $expectedOutput, $linker->linkContent( $this->title, $input ));
|
// $this->assertSame( $expectedOutput, $linker->linkContent( $this->title, $input ));
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// public function provideLinkContentNameSpacesData() {
|
// public function provideLinkContentNamespacesData() {
|
||||||
// return [
|
// return [
|
||||||
// [
|
// [
|
||||||
// [], // nameSpaces
|
// [], // namespaces
|
||||||
// 'With nameSpaces = [], page in custom namespace should not be linked',
|
// 'With namespaces = [], page in custom namespace should not be linked',
|
||||||
// 'With nameSpaces = [], page in custom namespace should not be linked'
|
// 'With namespaces = [], page in custom namespace should not be linked'
|
||||||
// ],
|
// ],
|
||||||
// [
|
// [
|
||||||
// [ 4000 ], // nameSpaces
|
// [ 4000 ], // namespaces
|
||||||
// 'With nameSpaces = [ 4000 ], page in custom namespace should be linked',
|
// 'With namespaces = [ 4000 ], page in custom namespace should be linked',
|
||||||
// 'With nameSpaces = [ 4000 ], page [[custom_namespace:in custom namespace]] should be linked'
|
// 'With namespaces = [ 4000 ], page [[custom_namespace:in custom namespace]] should be linked'
|
||||||
// ],
|
// ],
|
||||||
// ];
|
// ];
|
||||||
// }
|
// }
|
||||||
|
Reference in New Issue
Block a user