public function testDeleteRedirect() { $redirect = new EntityRedirect(new ItemId('Q11'), new ItemId('Q1')); $this->repo->putRedirect($redirect); $this->setExpectedException('Wikibase\\Lib\\Store\\RevisionedUnresolvedRedirectException'); $this->repo->deleteEntity($redirect->getEntityId(), 'testing', $GLOBALS['wgUser']); }