Projet

Général

Profil

Révision 6ff32cea

Ajouté par Florent Torregrosa il y a environ 9 ans

Update core to 7.36

Voir les différences:

drupal7/modules/system/system.test
2826 2826
  }
2827 2827
}
2828 2828

  
2829
/**
2830
 * Tests drupal_set_message() and related functions.
2831
 */
2832
class DrupalSetMessageTest extends DrupalWebTestCase {
2833

  
2834
  public static function getInfo() {
2835
    return array(
2836
      'name' => 'Messages',
2837
      'description' => 'Tests that messages can be displayed using drupal_set_message().',
2838
      'group' => 'System',
2839
    );
2840
  }
2841

  
2842
  function setUp() {
2843
    parent::setUp('system_test');
2844
  }
2845

  
2846
  /**
2847
   * Tests setting messages and removing one before it is displayed.
2848
   */
2849
  function testSetRemoveMessages() {
2850
    // The page at system-test/drupal-set-message sets two messages and then
2851
    // removes the first before it is displayed.
2852
    $this->drupalGet('system-test/drupal-set-message');
2853
    $this->assertNoText('First message (removed).');
2854
    $this->assertText('Second message (not removed).');
2855
  }
2856
}
2857

  
2829 2858
/**
2830 2859
 * Tests confirm form destinations.
2831 2860
 */

Formats disponibles : Unified diff