/** * Override parent method to set default settings to ignore storagePid because we did * not understand how to use it. And we usually don't want to be tied to a * specific pid anyway, so we prefer to do it manually when necessary. * TODO this method should be destroyed once we understand how to properly work with storagePid */ public function createQuery() { $query = parent::createQuery(); $query->getQuerySettings()->setRespectStoragePage(FALSE); return $query; }
/** * @test */ public function createQueryCallsQueryFactoryWithExpectedClassName() { $this->mockQueryFactory->expects($this->once())->method('create')->with('ExpectedType'); $this->repository->_set('objectType', 'ExpectedType'); $this->repository->createQuery(); }