$page = $this->getExistingTestPage( 'Mars' );
$this->assertFalse( $restriction->matches( $page->getTitle() ) );
+
+ // Deleted page.
+ $restriction = new $class( 2, 99999 );
+ $page = $this->getExistingTestPage( 'Saturn' );
+ $this->assertFalse( $restriction->matches( $page->getTitle() ) );
}
public function testGetType() {
$restriction = new $class( 1, 1 );
$title = \Title::newFromId( 1 );
- $this->assertEquals( $title->getArticleId(), $restriction->getTitle()->getArticleId() );
+ $this->assertEquals( $title->getArticleID(), $restriction->getTitle()->getArticleID() );
}
public function testNewFromRow() {