public function testRedirects()
 {
     $propertyKey = '_REDI';
     $dataItems = array();
     $specials = array($propertyKey);
     $fixed = array();
     $instance = new PropertyTableDefinitionBuilder($dataItems, $specials, $fixed);
     $instance->doBuild();
     $tableName = $instance->getTablePrefix() . strtolower($propertyKey);
     $definition = $instance->newTableDefinition(DataItem::TYPE_WIKIPAGE, $tableName, $propertyKey);
     $expected = array($tableName => $definition);
     $tableDefinitions = $instance->getTableDefinitions();
     $this->assertFalse($tableDefinitions[$tableName]->usesIdSubject());
 }
 private function buildDefinitionsForPropertyTables()
 {
     $enabledSpecialProperties = $this->fixedSpecialProperties;
     $customizableSpecialProperties = array_flip($this->customizableSpecialProperties);
     foreach ($this->customSpecialPropertyList as $property) {
         if (isset($customizableSpecialProperties[$property])) {
             $enabledSpecialProperties[] = $property;
         }
     }
     $definitionBuilder = new PropertyTableDefinitionBuilder($this->defaultDiTypeTableIdMap, $enabledSpecialProperties, $this->customFixedPropertyList);
     $definitionBuilder->doBuild();
     $this->propertyTableDefinitions = $definitionBuilder->getTableDefinitions();
     $this->fixedPropertyTableIds = $definitionBuilder->getFixedPropertyTableIds();
 }