function BackupMigrateUnitTest::testGetSQLHeader in Backup and Migrate 5
File
- tests/
BackupMigrateUnitTest.test, line 663
Class
- BackupMigrateUnitTest
- Unit tests for Backup and Migrate module.
Code
function testGetSQLHeader() {
$footer = _backup_migrate_get_sql_file_header();
$this
->assertTrue(strpos($footer, "SET NAMES utf8;") !== false, t('Check for the set names'));
$this
->assertTrue(strpos($footer, "/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;") !== false, t('Check for one of the mode reset statements'));
}