function BackupMigrateFunctionalityTest::assertDrupalMessage in Backup and Migrate 5
Same name and namespace in other branches
- 6.3 tests/backup_migrate.functionality.test \BackupMigrateFunctionalityTest::assertDrupalMessage()
- 6.2 tests/backup_migrate.functionality.test \BackupMigrateFunctionalityTest::assertDrupalMessage()
File
- tests/
BackupMigrateFunctionalityTest.test, line 456
Class
- BackupMigrateFunctionalityTest
- 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);
}