/**
  * @test
  */
 public function hasReturnsResultFromBackend()
 {
     $backend = $this->getMockBuilder(\TYPO3\Flow\Cache\Backend\AbstractBackend::class)->disableOriginalConstructor()->setMethods(array('get', 'set', 'has', 'remove', 'findIdentifiersByTag', 'flush', 'flushByTag', 'collectGarbage'))->getMock();
     $backend->expects($this->once())->method('has')->with($this->equalTo('StringCacheTest'))->will($this->returnValue(true));
     $cache = new \TYPO3\Flow\Cache\Frontend\StringFrontend('StringFrontend', $backend);
     $this->assertTrue($cache->has('StringCacheTest'), 'has() did not return TRUE.');
 }
 /**
  * @test
  */
 public function hasReturnsResultFromBackend()
 {
     $backend = $this->getMock('TYPO3\\Flow\\Cache\\Backend\\AbstractBackend', array('get', 'set', 'has', 'remove', 'findIdentifiersByTag', 'flush', 'flushByTag', 'collectGarbage'), array(), '', FALSE);
     $backend->expects($this->once())->method('has')->with($this->equalTo('StringCacheTest'))->will($this->returnValue(TRUE));
     $cache = new \TYPO3\Flow\Cache\Frontend\StringFrontend('StringFrontend', $backend);
     $this->assertTrue($cache->has('StringCacheTest'), 'has() did not return TRUE.');
 }