Projet

Général

Profil

Révision 1afa1695

Ajouté par Assos Assos il y a environ 9 ans

Udpate to 7.38

Voir les différences:

drupal7/modules/field_ui/field_ui.test
445 445
    $this->assertText(t('The machine-readable name is already in use. It must be unique.'));
446 446
    $this->assertUrl($url, array(), 'Stayed on the same page.');
447 447
  }
448

  
449
  /**
450
   * Tests that external URLs in the 'destinations' query parameter are blocked.
451
   */
452
  function testExternalDestinations() {
453
    $path = 'admin/structure/types/manage/article/fields/field_tags/field-settings';
454
    $options = array(
455
      'query' => array('destinations' => array('http://example.com')),
456
    );
457
    $this->drupalPost($path, NULL, t('Save field settings'), $options);
458

  
459
    $this->assertUrl('admin/structure/types/manage/article/fields', array(), 'Stayed on the same site.');
460
  }
448 461
}
449 462

  
450 463
/**

Formats disponibles : Unified diff