db = array( 'MultiEnum1' => 'MultiEnum("A, B, C, D","")', 'MultiEnum2' => 'MultiEnum("A, B, C, D","A")', 'MultiEnum3' => 'MultiEnum("A, B, C, D","A, B")', ); } $this->markTestSkipped('This test requires the Config API to be immutable'); } /** * Check that once a schema has been generated, then it doesn't need any more updating */ public function testFieldsDontRerequestChanges() { // These are MySQL specific :-S if(DB::getConn() instanceof MySQLDatabase) { $db = DB::getConn(); DB::quiet(); // Verify that it doesn't need to be recreated $db->beginSchemaUpdate(); $obj = new MySQLDatabaseTest_DO(); $obj->requireTable(); $needsUpdating = $db->doesSchemaNeedUpdating(); $db->cancelSchemaUpdate(); $this->assertFalse($needsUpdating); } } } class MySQLDatabaseTest_DO extends DataObject implements TestOnly { private static $db = array(); }