protected function setUp() { parent::setUp(); $this->wikibaseRepo = WikibaseRepo::getDefaultInstance(); $this->entityPerPageTable = $this->wikibaseRepo->getStore()->newEntityPerPage(); $this->clearTables(); $items = $this->addItems(); if ($this->countPages() !== count($items)) { throw new RuntimeException('Page count must be equal to item count.'); } $this->entityPerPageRows = $this->getEntityPerPageData(); }