TitleTest::testIsWatchable should call isWatchable

Instead of ::canHaveTalkPage
Likely a copy-paste error

Change-Id: I46c0ebd6267f8631907c011bca525572313154c1
This commit is contained in:
DannyS712 2020-12-21 11:43:39 +00:00
parent dd07220553
commit 3503537452

View file

@ -798,7 +798,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
'User page is watchable' => [
Title::makeTitle( NS_USER, 'Jane' ), true
],
'Talke page is watchable' => [
'Talk page is watchable' => [
Title::makeTitle( NS_TALK, 'Foo' ), true
],
'Special page is not watchable' => [
@ -881,7 +881,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
* @param bool $expected
*/
public function testIsWatchable( Title $title, $expected ) {
$actual = $title->canHaveTalkPage();
$actual = $title->isWatchable();
$this->assertSame( $expected, $actual, $title->getPrefixedDBkey() );
}