aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiMoveTest.php
diff options
context:
space:
mode:
authorThalia <thalia.e.chan@googlemail.com>2019-02-06 22:15:05 +0000
committerThalia <thalia.e.chan@googlemail.com>2019-02-06 22:15:05 +0000
commit5e683829d660d897ec92e10cdecc351587dbc49f (patch)
tree384195573deb183f6155103cb5e46ef7900cb0be /tests/phpunit/includes/api/ApiMoveTest.php
parent027fb1c8cd366bba1fe8c3dbdd2a1331d70b7761 (diff)
downloadmediawikicore-5e683829d660d897ec92e10cdecc351587dbc49f.tar.gz
mediawikicore-5e683829d660d897ec92e10cdecc351587dbc49f.zip
Ensure calls to Title::getArticleID use the same case as the definition
Change-Id: Ic92f43c9e9df2782ba20aa28ad9e6d2ef7976d2e
Diffstat (limited to 'tests/phpunit/includes/api/ApiMoveTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiMoveTest.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/phpunit/includes/api/ApiMoveTest.php b/tests/phpunit/includes/api/ApiMoveTest.php
index 3fa85394c14a..1e66a7d27604 100644
--- a/tests/phpunit/includes/api/ApiMoveTest.php
+++ b/tests/phpunit/includes/api/ApiMoveTest.php
@@ -36,7 +36,7 @@ class ApiMoveTest extends ApiTestCase {
$this->assertSame( $toTitle->getPrefixedText(), $target->getPrefixedText() );
}
- $this->assertSame( $id, $toTitle->getArticleId() );
+ $this->assertSame( $id, $toTitle->getArticleID() );
}
/**
@@ -126,7 +126,7 @@ class ApiMoveTest extends ApiTestCase {
'to' => '[',
] );
} finally {
- $this->assertSame( $id, Title::newFromText( $name )->getArticleId() );
+ $this->assertSame( $id, Title::newFromText( $name )->getArticleID() );
}
}
@@ -161,7 +161,7 @@ class ApiMoveTest extends ApiTestCase {
'to' => "$name 3",
] );
} finally {
- $this->assertSame( $id, Title::newFromText( "$name 2" )->getArticleId() );
+ $this->assertSame( $id, Title::newFromText( "$name 2" )->getArticleID() );
$this->assertFalse( Title::newFromText( "$name 3" )->exists(),
"\"$name 3\" should not exist" );
}
@@ -187,7 +187,7 @@ class ApiMoveTest extends ApiTestCase {
'tags' => 'custom tag',
] );
} finally {
- $this->assertSame( $id, Title::newFromText( $name )->getArticleId() );
+ $this->assertSame( $id, Title::newFromText( $name )->getArticleID() );
$this->assertFalse( Title::newFromText( "$name 2" )->exists(),
"\"$name 2\" should not exist" );
}
@@ -241,9 +241,9 @@ class ApiMoveTest extends ApiTestCase {
] );
$this->assertMoved( $name, "$name 2", $id );
- $this->assertSame( $talkId, Title::newFromText( "Talk:$name" )->getArticleId() );
+ $this->assertSame( $talkId, Title::newFromText( "Talk:$name" )->getArticleID() );
$this->assertSame( $talkDestinationId,
- Title::newFromText( "Talk:$name 2" )->getArticleId() );
+ Title::newFromText( "Talk:$name 2" )->getArticleID() );
$this->assertSame( [ [
'message' => 'articleexists',
'params' => [],
@@ -278,9 +278,9 @@ class ApiMoveTest extends ApiTestCase {
}
$this->assertSame( $ids["$name/error"],
- Title::newFromText( "$name/error" )->getArticleId() );
+ Title::newFromText( "$name/error" )->getArticleID() );
$this->assertSame( $ids["$name 2/error"],
- Title::newFromText( "$name 2/error" )->getArticleId() );
+ Title::newFromText( "$name 2/error" )->getArticleID() );
$results = array_merge( $res[0]['move']['subpages'], $res[0]['move']['subpages-talk'] );
foreach ( $results as $arr ) {
@@ -317,7 +317,7 @@ class ApiMoveTest extends ApiTestCase {
'to' => "$name 2",
], null, $user );
} finally {
- $this->assertSame( $id, Title::newFromText( "$name" )->getArticleId() );
+ $this->assertSame( $id, Title::newFromText( "$name" )->getArticleID() );
$this->assertFalse( Title::newFromText( "$name 2" )->exists(),
"\"$name 2\" should not exist" );
}
@@ -372,7 +372,7 @@ class ApiMoveTest extends ApiTestCase {
] );
$this->assertMoved( "Talk:$name", $name, $idBase );
- $this->assertSame( $idSub, Title::newFromText( "Talk:$name/1" )->getArticleId() );
+ $this->assertSame( $idSub, Title::newFromText( "Talk:$name/1" )->getArticleID() );
$this->assertFalse( Title::newFromText( "$name/1" )->exists(),
"\"$name/1\" should not exist" );