public function testCanConstructUser()
 {
     $title = $this->getMockBuilder('\\Title')->disableOriginalConstructor()->getMock();
     $title->expects($this->once())->method('getText')->will($this->returnValue('Foo'));
     $instance = new AppFactory();
     $this->assertInstanceOf('\\User', $instance->newUserFromTitle($title));
 }
 private function makeUserEditCountDataItem()
 {
     if (!$this->isUserPage()) {
         return;
     }
     $user = $this->appFactory->newUserFromTitle($this->getWikiPage()->getTitle());
     $count = $user->getEditCount();
     if ($count) {
         return new DINumber($count);
     }
 }