Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-39725 database: Include stats collections in unit tests

Conflicts:
	lib/ddl/tests/ddl_test.php
  • Loading branch information...
commit eb17e8ecd58e51dfbd6fde85ec339af0f7c7a1a3 1 parent 96e60a9
@mr-russ mr-russ authored samhemelryk committed
Showing with 8 additions and 3 deletions.
  1. +8 −3 lib/ddl/tests/ddl_test.php
View
11 lib/ddl/tests/ddl_test.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.