public function testCanConstructExifDataAnnotator() { $semanticData = $this->getMockBuilder('\\SMW\\SemanticData')->disableOriginalConstructor()->getMock(); $file = $this->getMockBuilder('\\File')->disableOriginalConstructor()->getMock(); $instance = new AppFactory(); $this->assertInstanceOf('\\SESP\\Annotator\\ExifDataAnnotator', $instance->newExifDataAnnotator($semanticData, $file)); }
private function makeUserEditCountDataItem() { if (!$this->isUserPage()) { return; } $user = $this->appFactory->newUserFromTitle($this->getWikiPage()->getTitle()); $count = $user->getEditCount(); if ($count) { return new DINumber($count); } }