Projet

Général

Profil

Révision 01dfd3b5

Ajouté par Assos Assos il y a plus de 3 ans

Udpate to 7.77

Voir les différences:

drupal7/modules/field/modules/field_sql_storage/field_sql_storage.test
313 313
    $field = array('field_name' => 'test_text', 'type' => 'text', 'settings' => array('max_length' => 255));
314 314
    $field = field_create_field($field);
315 315

  
316
    // Attempt to update the field in a way that would break the storage.
316
    // Attempt to update the field in a way that would break the storage. The
317
    // parenthesis suffix is needed because SQLite has *very* relaxed rules for
318
    // data types, so we actually need to provide an invalid SQL syntax in order
319
    // to break it.
320
    // @see https://www.sqlite.org/datatype3.html
317 321
    $prior_field = $field;
318
    $field['settings']['max_length'] = -1;
322
    $field['settings']['max_length'] = '-1)';
319 323
    try {
320 324
      field_update_field($field);
321 325
      $this->fail(t('Update succeeded.'));

Formats disponibles : Unified diff