Projet

Général

Profil

Révision 30d5b9c5

Ajouté par Mathieu Schiano Di Schiabica il y a environ 8 ans

Update to 7.42

Voir les différences:

drupal7/modules/field/modules/options/options.test
24 24
      'cardinality' => 1,
25 25
      'settings' => array(
26 26
        // Make sure that 0 works as an option.
27
        'allowed_values' => array(0 => 'Zero', 1 => 'One', 2 => 'Some <script>dangerous</script> & unescaped <strong>markup</strong>'),
27
        'allowed_values' => array(0 => 'Zero', 1 => 'One', 2 => 'Some <script>dangerous</script> & unescaped <strong>markup</strong>',  3 => 'Some HTML encoded markup with &lt; &amp; &gt;'),
28 28
      ),
29 29
    );
30 30
    $this->card_1 = field_create_field($this->card_1);
......
233 233
    $this->assertNoOptionSelected("edit-card-1-$langcode", 1);
234 234
    $this->assertNoOptionSelected("edit-card-1-$langcode", 2);
235 235
    $this->assertRaw('Some dangerous &amp; unescaped markup', 'Option text was properly filtered.');
236
    $this->assertRaw('Some HTML encoded markup with &lt; &amp; &gt;', 'HTML entities in option text were properly handled and not double-encoded');
236 237

  
237 238
    // Submit form: select invalid 'none' option.
238 239
    $edit = array("card_1[$langcode]" => '_none');

Formats disponibles : Unified diff