diff options
author | MusikAnimal <musikanimal@gmail.com> | 2020-07-22 16:10:52 -0400 |
---|---|---|
committer | MusikAnimal <musikanimal@gmail.com> | 2020-08-11 16:17:01 -0400 |
commit | d3c13fc2ce67d2653ecb35f3e1f2647268142baf (patch) | |
tree | 41ca295a3e4192d8af7cf7d8f53c19a3a97e2d35 /tests/phpunit/includes/api/ApiMoveTest.php | |
parent | 7b4cfb1d0ed2d4af29370614d1c30cc94b02ad2a (diff) | |
download | mediawikicore-d3c13fc2ce67d2653ecb35f3e1f2647268142baf.tar.gz mediawikicore-d3c13fc2ce67d2653ecb35f3e1f2647268142baf.zip |
WatchAction: avoid unnecessary UPDATEs when expiry is unchanged
Bug: T258649
Change-Id: I0a5a84480bbd630c7dd1744b4316ea31d7bedd5b
Diffstat (limited to 'tests/phpunit/includes/api/ApiMoveTest.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiMoveTest.php | 4 |
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. |