Permalink
Browse files

MDL-39725 database: Include stats collections in unit tests

Conflicts:
	lib/ddl/tests/ddl_test.php
  • Loading branch information...
mr-russ authored and Sam Hemelryk committed Jun 26, 2013
1 parent 96e60a9 commit eb17e8ecd58e51dfbd6fde85ec339af0f7c7a1a3
Showing with 8 additions and 3 deletions.
  1. +8 −3 lib/ddl/tests/ddl_test.php
View
@@ -1516,7 +1516,10 @@ public function test_temp_tables() {
$this->assertEquals($records[1]->secondname, $this->records['test_table1'][0]->secondname);
$this->assertEquals($records[2]->intro, $this->records['test_table1'][1]->intro);
- // Drop table1
+ // Collect statistics about the data in the temp table.
+ $DB->update_temp_table_stats();
+
+ // Drop table1.
$dbman->drop_table($table1);
$this->assertFalse($dbman->table_exists('test_table1'));
@@ -1529,8 +1532,10 @@ public function test_temp_tables() {
$this->assertTrue($e instanceof ddl_table_missing_exception);
}
- // Fill/modify/delete a few table0 records
- // TODO: that's
+ // Collect statistics about the data in the temp table with less tables.
+ $DB->update_temp_table_stats();
+
+ // Fill/modify/delete a few table0 records.
// Drop table0
$dbman->drop_table($table0);

0 comments on commit eb17e8e

Please sign in to comment.