private function getPageRevisionsForId($pageId)
 {
     if ($this->dbConnection === null) {
         $this->dbConnection = $this->appFactory->newDatabaseConnection();
         //( 'DBConnection', 'DatabaseBase' );
     }
     return $this->dbConnection->estimateRowCount("revision", "*", array("rev_page" => $pageId));
 }
 public function testCanConstructDatabaseConnection()
 {
     $instance = new AppFactory();
     $this->assertInstanceOf('\\DatabaseBase', $instance->newDatabaseConnection());
 }