コード例 #1
0
 /**
  * @test
  * @see https://forge.typo3.org/issues/67067
  */
 public function tablesAreUnmappedInAdminGetTables()
 {
     $handlerMock = $this->getMock('\\ADODB_mock', array('MetaTables'), array(), '', FALSE);
     $handlerMock->expects($this->any())->method('MetaTables')->will($this->returnValue(array('cf_cache_hash')));
     $this->subject->handlerInstance['_DEFAULT'] = $handlerMock;
     $actual = $this->subject->admin_get_tables();
     $expected = array('cachingframework_cache_hash' => array('Name' => 'cachingframework_cache_hash'));
     $this->assertSame($expected, $actual);
 }
コード例 #2
0
 /**
  * @test
  * @see https://forge.typo3.org/issues/67067
  */
 public function adminGetTablesReturnsArrayWithNameKey()
 {
     $handlerMock = $this->getMock('\\ADODB_mock', array('MetaTables'), array(), '', false);
     $handlerMock->expects($this->any())->method('MetaTables')->will($this->returnValue(array('cf_cache_hash')));
     $this->subject->handlerCfg['_DEFAULT']['type'] = 'adodb';
     $this->subject->handlerInstance['_DEFAULT'] = $handlerMock;
     $actual = $this->subject->admin_get_tables();
     $expected = array('cf_cache_hash' => array('Name' => 'cf_cache_hash'));
     $this->assertSame($expected, $actual);
 }