mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-20625 fixed typos, credit goes to Martin Langhoff
This commit is contained in:
parent
e484041b8c
commit
3400bf6cc4
3 changed files with 5 additions and 5 deletions
|
@ -2451,7 +2451,7 @@ class dml_test extends UnitTestCase {
|
|||
$this->assertEqual(get_class($e), 'dml_transaction_exception');
|
||||
}
|
||||
$this->assertEqual(2, $DB->count_records($tablename)); // not rolled back yet
|
||||
// the forced rollback is done from the default_exception hadnler and similar places,
|
||||
// the forced rollback is done from the default_exception handler and similar places,
|
||||
// let's do it manually here
|
||||
$this->assertTrue($DB->is_transaction_started());
|
||||
$DB->force_transaction_rollback();
|
||||
|
@ -2522,7 +2522,7 @@ class dml_test extends UnitTestCase {
|
|||
} catch (Exception $e) {
|
||||
$this->assertEqual(get_class($e), 'dml_transaction_exception');
|
||||
}
|
||||
// this is done in default exception hadnler usually
|
||||
// this is done in default exception handler usually
|
||||
$this->assertTrue($DB->is_transaction_started());
|
||||
$this->assertEqual(2, $DB->count_records($tablename)); // not rolled back yet
|
||||
$DB->force_transaction_rollback();
|
||||
|
@ -2554,7 +2554,7 @@ class dml_test extends UnitTestCase {
|
|||
// the rollback was used already once, no way to use it again
|
||||
$this->assertEqual(get_class($e), 'dml_transaction_exception');
|
||||
}
|
||||
// this is done in default exception hadnler usually
|
||||
// this is done in default exception handler usually
|
||||
$this->assertTrue($DB->is_transaction_started());
|
||||
$DB->force_transaction_rollback();
|
||||
$DB->delete_records($tablename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue