- // @todo Test field purge and table deletion once supported. See
- // https://www.drupal.org/node/2282119.
- // $this->assertFalse($this->database->schema()->tableExists($table), 'Custom field table was deleted');
+ // Purge field data, and check that the storage definition has been
+ // completely removed once the data is purged.
+ field_purge_batch(10);
+ $this->assertFalse($this->database->schema()->tableExists($table), 'Custom field table was deleted');