1 system.test BackdropSetMessageTest::testSetRemoveMessages()

Tests setting messages and removing one before it is displayed.

File

core/modules/system/tests/system.test, line 2555
Tests for system.module.

Class

BackdropSetMessageTest
Tests backdrop_set_message() and related functions.

Code

function testSetRemoveMessages() {
  // The page at system-test/backdrop-set-message sets two messages and then
  // removes the first before it is displayed.
  $this->backdropGet('system-test/backdrop-set-message');
  $this->assertNoText('First message (removed).');
  $this->assertText('Second message (not removed).');
}