Permalink
Browse files

MDL-39725 database: Include stats collections in unit tests

  • Loading branch information...
1 parent bd8dbfd commit 9cd60b20d0ea6cd42a28353216cd0002634d5989 @mr-russ mr-russ committed with Sam Hemelryk Jun 26, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/ddl/tests/ddl_test.php
@@ -1545,6 +1545,9 @@ public function test_temp_tables() {
$this->assertSame($records[1]->secondname, $this->records['test_table1'][0]->secondname);
$this->assertSame($records[2]->intro, $this->records['test_table1'][1]->intro);
+ // 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'));
@@ -1558,6 +1561,9 @@ public function test_temp_tables() {
$this->assertInstanceOf('ddl_table_missing_exception', $e);
}
+ // 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.

0 comments on commit 9cd60b2

Please sign in to comment.