setGlobalConfig(); $this->dummyDbi = $this->createDbiDummy(); $this->dbi = $this->createDatabaseInterface($this->dummyDbi); DatabaseInterface::$instance = $this->dbi; Current::$database = 'db'; Current::$table = 'table'; $config = Config::getInstance(); $config->selectedServer['DisableIS'] = false; $config->selectedServer['host'] = 'localhost'; $this->data = new Data($this->dbi, $config); } public function testIndex(): void { $response = new ResponseRenderer(); $dbi = DatabaseInterface::getInstance(); $controller = new ProcessesController( $response, new Template(), $this->data, $dbi, new Processes($dbi), ); $this->dummyDbi->addSelectDb('mysql'); $controller(self::createStub(ServerRequest::class)); $this->dummyDbi->assertAllSelectsConsumed(); $html = $response->getHTMLResult(); self::assertStringContainsString( 'Note: Enabling the auto refresh here might cause ' . 'heavy traffic between the web server and the MySQL server.', $html, ); // Test tab links self::assertStringContainsString('