* @covers SkinTemplate::addToSidebarPlain
*/
public function testExpandMessages() {
- $this->assertSidebar(
+ $this->assertSideBar(
[ 'Title' => [
[
'text' => 'Help',
'wgNoFollowDomainExceptions' => [],
'wgNoFollowNsExceptions' => [],
] );
- $this->assertSidebar(
+ $this->assertSideBar(
[ 'Title' => [
# ** http://www.mediawiki.org/| Home
[
}
/**
- * bug 33321 - Make sure there's a | after transforming.
+ * T35321 - Make sure there's a | after transforming.
* @group Database
* @covers SkinTemplate::addToSidebarPlain
*/
public function testTrickyPipe() {
- $this->assertSidebar(
+ $this->assertSideBar(
[ 'Title' => [
# The first 2 are skipped
# Doesn't really test the url properly
** http://www.mediawiki.org/| Home';
$bar = [];
- $this->skin->addToSideBarPlain( $bar, $text );
+ $this->skin->addToSidebarPlain( $bar, $text );
return $bar['Title'][0];
}
/**
* Test $wgNoFollowLinks in sidebar
+ * @covers Skin::addToSidebarPlain
*/
public function testRespectWgnofollowlinks() {
$this->setMwGlobals( 'wgNoFollowLinks', false );
/**
* Test $wgExternaLinkTarget in sidebar
* @dataProvider dataRespectExternallinktarget
+ * @covers Skin::addToSidebarPlain
*/
public function testRespectExternallinktarget( $externalLinkTarget ) {
$this->setMwGlobals( 'wgExternalLinkTarget', $externalLinkTarget );