Test a failed upgrade, and verify that the failure is reported.
public function testFailedUpgrade() {
// Destroy a table that the upgrade process needs.
db_drop_table('access');
// Assert that the upgrade fails.
$this
->assertFalse($this
->performUpgrade(FALSE) && $this->pendingUpdates, 'A failed upgrade should return messages.');
}