Révision 6ff32cea
Ajouté par Florent Torregrosa il y a environ 9 ans
drupal7/modules/simpletest/tests/database_test.test | ||
---|---|---|
238 | 238 |
// Open the default target so we have an object to compare. |
239 | 239 |
$db1 = Database::getConnection('default', 'default'); |
240 | 240 |
|
241 |
// Try to close the the default connection, then open a new one.
|
|
241 |
// Try to close the default connection, then open a new one. |
|
242 | 242 |
Database::closeConnection('default', 'default'); |
243 | 243 |
$db2 = Database::getConnection('default', 'default'); |
244 | 244 |
|
... | ... | |
3454 | 3454 |
} |
3455 | 3455 |
|
3456 | 3456 |
/** |
3457 |
* Helper method for transaction unit test. This "outer layer" transaction |
|
3458 |
* starts and then encapsulates the "inner layer" transaction. This nesting |
|
3459 |
* is used to evaluate whether the the database transaction API properly |
|
3460 |
* supports nesting. By "properly supports," we mean the outer transaction |
|
3461 |
* continues to exist regardless of what functions are called and whether |
|
3462 |
* those functions start their own transactions. |
|
3457 |
* Helper method for transaction unit test. |
|
3458 |
* |
|
3459 |
* This "outer layer" transaction starts and then encapsulates the |
|
3460 |
* "inner layer" transaction. This nesting is used to evaluate whether the |
|
3461 |
* database transaction API properly supports nesting. By "properly supports," |
|
3462 |
* we mean the outer transaction continues to exist regardless of what |
|
3463 |
* functions are called and whether those functions start their own |
|
3464 |
* transactions. |
|
3463 | 3465 |
* |
3464 | 3466 |
* In contrast, a typical database would commit the outer transaction, start |
3465 | 3467 |
* a new transaction for the inner layer, commit the inner layer transaction, |
Formats disponibles : Unified diff
Update core to 7.36