1.20.x database_test.test protected ConnectionUnitTest::assertNoConnection($id)

Asserts that a connection ID does not exist.

Parameters

integer $id: The connection ID to verify.

File

modules/simpletest/tests/database_test.test, line 3985
Database tests.

Class

ConnectionUnitTest
Tests management of database connections.

Code

protected function assertNoConnection($id) {
  $list = $this->monitor->query('SHOW PROCESSLIST')->fetchAllKeyed(0, 0);
  return $this->assertFalse(isset($list[$id]), format_string('Connection ID @id not found.', array('@id' => $id)));
}