public static function test_field_types_can_be_stored() { $field_types = self::get_field_types(); $specified_table = new Database_SpecifiedTable('ps_foo_bar'); foreach (array_keys($field_types) as $key) { $specified_table->add_field_type($key, $field_types[$key]); } /* * Test that they went in. */ foreach (array_keys($field_types) as $key) { if ($specified_table->get_field_type($key) != $field_types[$key]) { return FALSE; } } return TRUE; }