/**
  * oxDebugDb class is not used in normal eshop execution,
  * thus we check only getWarning() method results
  */
 public function testGetWarnings()
 {
     modDB::$unitMOD = false;
     $oSubj = oxNew('oxDebugDb');
     $aOut = $oSubj->getWarnings();
     $this->assertEquals(4, count($aOut));
     $this->assertEquals(1, $aOut[0]['time']);
     $this->assertEquals('MESS', $aOut[0]['check']);
     $this->assertEquals('MESS', $aOut[1]['check']);
     $this->assertEquals('MESS_ALL', $aOut[2]['check']);
     $this->assertEquals('MESS_ALL', $aOut[3]['check']);
 }
 public function cleanup()
 {
     modConfig::getInstance()->remClassFunction('getDB');
     self::$unitMOD = null;
     parent::cleanup();
 }