/**
  * @return EntityLookup
  */
 private function getEntityLookup()
 {
     if ($this->entityLookup === null) {
         $this->entityLookup = $this->factory->newEntityLookup();
     }
     return $this->entityLookup;
 }
 public function testCanConstructEntityLookup()
 {
     $instance = new SQLStoreFactory($this->store);
     $this->testEnvironment->addConfiguration('smwgValueLookupCacheType', CACHE_NONE);
     $this->assertInstanceOf('SMW\\SQLStore\\EntityStore\\DirectEntityLookup', $instance->newEntityLookup());
     $this->testEnvironment->addConfiguration('smwgValueLookupCacheType', 'hash');
     $this->assertInstanceOf('SMW\\SQLStore\\EntityStore\\CachedEntityLookup', $instance->newEntityLookup());
 }