aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiMoveTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/api/ApiMoveTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiMoveTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/api/ApiMoveTest.php b/tests/phpunit/includes/api/ApiMoveTest.php
index 248313a2dc2d..8642d9900b91 100644
--- a/tests/phpunit/includes/api/ApiMoveTest.php
+++ b/tests/phpunit/includes/api/ApiMoveTest.php
@@ -153,8 +153,8 @@ class ApiMoveTest extends ApiTestCase {
// Move to new location, without changing the watched state.
$this->doApiRequestWithToken( [
'action' => 'move',
- 'from' => $name,
- 'to' => "$name 2",
+ 'from' => $title->getDBkey(),
+ 'to' => $title2->getDBkey(),
] );
// New page should have the same expiry.