// Opening a connection after closing it should yield an object different than the original.
$this->assertNotIdentical($db1,$db2,t('Opening the default connection after it is closed returns a new object.'));
$this->assertNotIdentical($db1,$db2,'Opening the default connection after it is closed returns a new object.');
}
/**
...
...
@@ -101,8 +101,8 @@ function testConnectionOptions() {
// In the MySQL driver, the port can be different, so check individual
// options.
$this->assertEqual($connection_info['default']['driver'],$connectionOptions['driver'],t('The default connection info driver matches the current connection options driver.'));
$this->assertEqual($connection_info['default']['database'],$connectionOptions['database'],t('The default connection info database matches the current connection options database.'));
$this->assertEqual($connection_info['default']['driver'],$connectionOptions['driver'],'The default connection info driver matches the current connection options driver.');
$this->assertEqual($connection_info['default']['database'],$connectionOptions['database'],'The default connection info database matches the current connection options database.');
// Set up identical slave and confirm connection options are identical.
@@ -111,7 +111,7 @@ function testConnectionOptions() {
// Get a fresh copy of the default connection options.
$connectionOptions=$db->getConnectionOptions();
$this->assertIdentical($connectionOptions,$connectionOptions2,t('The default and slave connection options are identical.'));
$this->assertIdentical($connectionOptions,$connectionOptions2,'The default and slave connection options are identical.');
// Set up a new connection with different connection info.
$test=$connection_info['default'];
...
...
@@ -121,6 +121,6 @@ function testConnectionOptions() {
// Get a fresh copy of the default connection options.
$connectionOptions=$db->getConnectionOptions();
$this->assertNotEqual($connection_info['default']['database'],$connectionOptions['database'],t('The test connection info database does not match the current connection options database.'));
$this->assertNotEqual($connection_info['default']['database'],$connectionOptions['database'],'The test connection info database does not match the current connection options database.');
@@ -44,7 +44,7 @@ function testInsertDuplicateData() {
'job'=>'Singer',
))
->execute();
$this->fail(t('Insert succeedded when it should not have.'));
$this->fail('Insert succeedded when it should not have.');
}
catch(Exception$e){
// Check if the first record was inserted.
...
...
@@ -56,14 +56,14 @@ function testInsertDuplicateData() {
// Database engines that don't support transactions can leave partial
// inserts in place when an error occurs. This is the case for MySQL
// when running on a MyISAM table.
$this->pass(t("The whole transaction has not been rolled-back when a duplicate key insert occurs, this is expected because the database doesn't support transactions"));
$this->pass("The whole transaction has not been rolled-back when a duplicate key insert occurs, this is expected because the database doesn't support transactions");