X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FMovePageTest.php;h=0ef2fa630fc1492dcfb366d984fa7cd0bbf8e733;hb=6467ad900b4799c01bbbaceb38cb7fbe309f1c53;hp=027b877ce440ef83058be8e12b82dcad678ff3a8;hpb=e681b2641c7daddca15444bcb26c63100efcd6f8;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/MovePageTest.php b/tests/phpunit/includes/MovePageTest.php index 027b877ce4..0ef2fa630f 100644 --- a/tests/phpunit/includes/MovePageTest.php +++ b/tests/phpunit/includes/MovePageTest.php @@ -1,5 +1,8 @@ doEditContent( new WikitextContent( 'foo' ), 'bar' ); + $newTitle = Title::newFromText( 'Help:Some other title' ); + $this->assertNull( + WikiPage::factory( $newTitle )->getRevision() + ); + + $this->assertTrue( $oldTitle->moveTo( $newTitle, false, 'test1', true ) ); + $this->assertNotNull( + WikiPage::factory( $oldTitle )->getRevision() + ); + $this->assertNotNull( + WikiPage::factory( $newTitle )->getRevision() + ); + } }