function testRemoveQuery() { $query = new Search_Query('Hello World'); $query->store('my_custom_name', $this->index); $this->index->unstore('my_custom_name'); $tf = $this->index->getTypeFactory(); $names = $this->index->getMatchingQueries(array('object_type' => $tf->identifier('wiki page'), 'object_id' => $tf->identifier('HomePage'), 'contents' => $tf->plaintext('Hello World!'))); $this->assertEquals(array(), $names); }