/**
  * Sets up this test case.
  */
 protected function setUp()
 {
     $this->databaseMock = $this->getMock('TYPO3\\CMS\\Core\\Database\\DatabaseConnection', array('exec_UPDATEquery', 'exec_SELECTgetSingleRow', 'exec_SELECTgetRows', 'fullQuoteStr'));
     $this->fixture = $this->getMock('TYPO3\\CMS\\Core\\Collection\\RecordCollectionRepository', array('getDatabaseConnection'));
     $this->fixture->expects($this->any())->method('getDatabaseConnection')->will($this->returnValue($this->databaseMock));
     $this->testTableName = uniqid('tx_testtable');
 }
 /**
  * Sets up this test case.
  */
 protected function setUp()
 {
     $this->databaseMock = $this->getMock(\TYPO3\CMS\Core\Database\DatabaseConnection::class, array('exec_UPDATEquery', 'exec_SELECTgetSingleRow', 'exec_SELECTgetRows', 'fullQuoteStr'));
     $this->subject = $this->getMock(\TYPO3\CMS\Core\Collection\RecordCollectionRepository::class, array('getDatabaseConnection'));
     $this->subject->expects($this->any())->method('getDatabaseConnection')->will($this->returnValue($this->databaseMock));
     $this->testTableName = $this->getUniqueId('tx_testtable');
 }