'withouttype', 'type' => '' ), 'TYPE' ), array( array( 'name' => '', 'type' => 'withoutname' ), 'NAME' ) ); } /** * @dataProvider getBrokenField * @group 42406 */ public function testVardef($field, $error) { $fieldsdefs = array( 'broken_field' => $field, 'test' => array( 'name' => 'test', 'type' => 'varchar' ) ); $indices = array(); $db = DBManagerFactory::getInstance(); $result = $db->repairTableParams('contacts', $fieldsdefs, $indices, false); $this->assertRegExp('/\/\* ' . $error . ' IS MISSING IN VARDEF contacts::broken_field \*\//', $result, 'Broken vardef is passed to db'); } }