/**
  * Delete all cached information.
  *
  * @since 1.8
  */
 public function clearCaches()
 {
     $this->prop_ids = array();
     $this->prop_sortkeys = array();
     $this->regular_ids = array();
     $this->regular_sortkeys = array();
     $this->byIdDataItemFinder->clear();
 }
 public function testGetDataItemPoolHashListFor()
 {
     $row = new \stdClass();
     $row->smw_title = 'Foo';
     $row->smw_namespace = 0;
     $row->smw_iw = '';
     $row->smw_subobject = '';
     $connection = $this->getMockBuilder('\\SMW\\MediaWiki\\Database')->disableOriginalConstructor()->getMock();
     $connection->expects($this->once())->method('select')->with($this->anything(), $this->anything(), $this->equalTo(array('smw_id' => array(42))))->will($this->returnValue(array($row)));
     $instance = new ByIdDataItemFinder($connection);
     $this->assertEquals(array('Foo#0##'), $instance->getDataItemPoolHashListFor(array(42)));
 }