/** * @since 1.0 * * @return WikiPage */ public function getWikiPage() { if ($this->page === null) { $this->page = $this->appFactory->newWikiPage($this->semanticData->getSubject()->getTitle()); //$this->loadRegisteredObject( 'WikiPage' ); } return $this->page; }
public function testCanConstructWikiPage() { $title = $this->getMockBuilder('\\Title')->disableOriginalConstructor()->getMock(); $instance = new AppFactory(); $this->assertInstanceOf('\\WikiPage', $instance->newWikiPage($title)); }