You are here

function BackupMigrateUnitTest::assertDrupalMessage in Backup and Migrate 5

1 call to BackupMigrateUnitTest::assertDrupalMessage()
BackupMigrateUnitTest::testCreateBackupDirectory in tests/BackupMigrateUnitTest.test

File

tests/BackupMigrateUnitTest.test, line 719

Class

BackupMigrateUnitTest
Unit tests for Backup and Migrate module.

Code

function assertDrupalMessage($type, $drupal_message, $message) {
  foreach (@$_SESSION['messages'][$type] as $session_message) {
    if ($session_message == $drupal_message) {
      $this
        ->assertTrue(true, $message);
      return;
    }
  }
  $this
    ->assertTrue(false, $message);
}