/** * @dataProvider revisionInfoProvider */ public function testOnImportHandleRevisionXMLTag(array $revisionInfo, $allowEntityImport, $expectedException = null) { //NOTE: class is unclear, see Bug T66657. But we don't use that object anyway. $importer = $this->getMockBuilder('Import')->disableOriginalConstructor()->getMock(); WikibaseRepo::getDefaultInstance()->getSettings()->setSetting('allowEntityImport', $allowEntityImport); if ($expectedException !== null) { $this->setExpectedException($expectedException); } RepoHooks::onImportHandleRevisionXMLTag($importer, array(), $revisionInfo); $this->assertTrue(true); // make PHPUnit happy }