Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
MDL-39725 database: Include stats collections in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-russ committed Dec 10, 2013
1 parent 814c943 commit 8343b34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ddl/tests/ddl_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand All @@ -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.
Expand Down

0 comments on commit 8343b34

Please sign in to comment.