$this->assertTrue($indexes["{$field_name}_value_format"]==array(1=>"{$field_name}_value",2=>"{$field_name}_format"),t("Index on value_format created in $table"));
$this->assertTrue(empty($indexes["{$field_name}_value"]),t("Index on value removed in $table"));
$this->assertEqual($entity->{$field_name}[LANGUAGE_NONE][0]['value'],'field data',t("Index changes performed without dropping the tables"));
}
/**
...
...
@@ -398,13 +392,4 @@ class FieldSqlStorageTestCase extends DrupalWebTestCase {
$this->assertEqual($details[FIELD_LOAD_REVISION][$revision][$column_name],$storage_column_name,t('Column name %value matches the definition in %bin.',array('%value'=>$column_name,'%bin'=>$revision)));
}
}
functiongetIndexes($table){
$indexes=array();
$result=db_query("SHOW INDEXES FROM {".$table."}");