/**
  * @test
  */
 public function getWhereStringTest()
 {
     $this->assertEquals(' AND pid!=0', $this->service->getWhereString('pid!=0'));
 }
 /**
  * Get records from database
  *
  * @param $typoScriptUrlEntry
  * @SuppressWarnings(superglobals)
  *
  * @return bool|\mysqli_result|object
  */
 private function getRecordsFromDatabase($typoScriptUrlEntry)
 {
     if (!isset($GLOBALS['TCA'][$typoScriptUrlEntry['table']]) || !is_array($GLOBALS['TCA'][$typoScriptUrlEntry['table']]['ctrl'])) {
         return false;
     }
     $language = '';
     if (intval($typoScriptUrlEntry['hideIfNotTranslated']) === 1) {
         $language = 'AND (sys_language_uid=\'-1\' OR sys_language_uid="' . intval(GeneralUtility::_GET('L')) . '") ';
     }
     return $this->getDatabaseConnection()->exec_SELECTquery('*', $typoScriptUrlEntry['table'], 'pid!=0 ' . $language . ' ' . AdditionalWhereService::getWhereString($typoScriptUrlEntry['additionalWhere']) . $this->pageRepository->enableFields($typoScriptUrlEntry['table']));
 }